eric6/Plugins/WizardPlugins/QRegularExpressionWizard/QRegularExpressionWizardCharactersDialog.py

changeset 8143
2c730d5fd177
parent 7923
91e843545d9a
child 8218
7c09585bd960
equal deleted inserted replaced
8141:27f636beebad 8143:2c730d5fd177
96 self.moreSinglesButton = QPushButton( 96 self.moreSinglesButton = QPushButton(
97 self.tr("Additional Entries"), self.singlesBox) 97 self.tr("Additional Entries"), self.singlesBox)
98 self.moreSinglesButton.setObjectName("moreSinglesButton") 98 self.moreSinglesButton.setObjectName("moreSinglesButton")
99 hlayout0.addWidget(self.moreSinglesButton) 99 hlayout0.addWidget(self.moreSinglesButton)
100 hspacer0 = QSpacerItem( 100 hspacer0 = QSpacerItem(
101 30, 20, QSizePolicy.Expanding, QSizePolicy.Minimum) 101 30, 20, QSizePolicy.Policy.Expanding, QSizePolicy.Policy.Minimum)
102 hlayout0.addItem(hspacer0) 102 hlayout0.addItem(hspacer0)
103 self.singlesBoxLayout.addLayout(hlayout0) 103 self.singlesBoxLayout.addLayout(hlayout0)
104 self.moreSinglesButton.clicked.connect(self.__addSinglesLine) 104 self.moreSinglesButton.clicked.connect(self.__addSinglesLine)
105 105
106 # generate dialog part for character ranges 106 # generate dialog part for character ranges
131 self.moreRangesButton = QPushButton( 131 self.moreRangesButton = QPushButton(
132 self.tr("Additional Entries"), self.rangesBox) 132 self.tr("Additional Entries"), self.rangesBox)
133 self.moreSinglesButton.setObjectName("moreRangesButton") 133 self.moreSinglesButton.setObjectName("moreRangesButton")
134 hlayout1.addWidget(self.moreRangesButton) 134 hlayout1.addWidget(self.moreRangesButton)
135 hspacer1 = QSpacerItem( 135 hspacer1 = QSpacerItem(
136 30, 20, QSizePolicy.Expanding, QSizePolicy.Minimum) 136 30, 20, QSizePolicy.Policy.Expanding, QSizePolicy.Policy.Minimum)
137 hlayout1.addItem(hspacer1) 137 hlayout1.addItem(hspacer1)
138 self.rangesBoxLayout.addLayout(hlayout1) 138 self.rangesBoxLayout.addLayout(hlayout1)
139 self.moreRangesButton.clicked.connect(self.__addRangesLine) 139 self.moreRangesButton.clicked.connect(self.__addRangesLine)
140 140
141 def __initCharacterSelectors(self): 141 def __initCharacterSelectors(self):
346 le1 = QLineEdit(hbox) 346 le1 = QLineEdit(hbox)
347 le1.setValidator(self.charValidator) 347 le1.setValidator(self.charValidator)
348 hboxLayout.addWidget(le1) 348 hboxLayout.addWidget(le1)
349 cb1a = QComboBox(hbox) 349 cb1a = QComboBox(hbox)
350 cb1a.setEditable(False) 350 cb1a.setEditable(False)
351 cb1a.setSizeAdjustPolicy(QComboBox.AdjustToContents) 351 cb1a.setSizeAdjustPolicy(QComboBox.SizeAdjustPolicy.AdjustToContents)
352 hboxLayout.addWidget(cb1a) 352 hboxLayout.addWidget(cb1a)
353 cb1a.hide() 353 cb1a.hide()
354 cb2 = QComboBox(hbox) 354 cb2 = QComboBox(hbox)
355 cb2.setEditable(False) 355 cb2.setEditable(False)
356 self.__populateCharTypeCombo(cb2, True) 356 self.__populateCharTypeCombo(cb2, True)
358 le2 = QLineEdit(hbox) 358 le2 = QLineEdit(hbox)
359 le2.setValidator(self.charValidator) 359 le2.setValidator(self.charValidator)
360 hboxLayout.addWidget(le2) 360 hboxLayout.addWidget(le2)
361 cb2a = QComboBox(hbox) 361 cb2a = QComboBox(hbox)
362 cb2a.setEditable(False) 362 cb2a.setEditable(False)
363 cb2a.setSizeAdjustPolicy(QComboBox.AdjustToContents) 363 cb2a.setSizeAdjustPolicy(QComboBox.SizeAdjustPolicy.AdjustToContents)
364 hboxLayout.addWidget(cb2a) 364 hboxLayout.addWidget(cb2a)
365 cb2a.hide() 365 cb2a.hide()
366 self.singlesItemsBoxLayout.addWidget(hbox) 366 self.singlesItemsBoxLayout.addWidget(hbox)
367 367
368 cb1.activated[int].connect( 368 cb1.activated[int].connect(

eric ide

mercurial