More stupid PyQt enums

This commit is contained in:
Kovid Goyal 2020-12-20 10:55:55 +05:30
parent b984d72958
commit 700542e74a
No known key found for this signature in database
GPG Key ID: 06BC317B515ACE7C
2 changed files with 3 additions and 3 deletions

View File

@ -27,7 +27,7 @@ class PluginWidget(Widget):
self.opt_docx_page_size.addItem(x) self.opt_docx_page_size.addItem(x)
self.initialize_options(get_option, get_help, db, book_id) self.initialize_options(get_option, get_help, db, book_id)
self.layout().setFieldGrowthPolicy(self.layout().ExpandingFieldsGrow) self.layout().setFieldGrowthPolicy(QFormLayout.FieldGrowthPolicy.ExpandingFieldsGrow)
def setupUi(self, *a): def setupUi(self, *a):
self.l = l = QFormLayout(self) self.l = l = QFormLayout(self)

View File

@ -40,8 +40,8 @@ class PluginWidget(Widget, Ui_Form):
self.opt_pdf_standard_font.addItem(x) self.opt_pdf_standard_font.addItem(x)
self.initialize_options(get_option, get_help, db, book_id) self.initialize_options(get_option, get_help, db, book_id)
self.layout().setFieldGrowthPolicy(self.layout().ExpandingFieldsGrow) self.layout().setFieldGrowthPolicy(QFormLayout.FieldGrowthPolicy.ExpandingFieldsGrow)
self.template_box.layout().setFieldGrowthPolicy(self.layout().AllNonFixedFieldsGrow) self.template_box.layout().setFieldGrowthPolicy(QFormLayout.FieldGrowthPolicy.AllNonFixedFieldsGrow)
self.profile_size_toggled() self.profile_size_toggled()
def profile_size_toggled(self): def profile_size_toggled(self):