E5Gui/E5ToolBarDialog.py

changeset 564
b3d966393ba9
parent 541
00e1a5d060c5
child 791
9ec2ac20e54e
equal deleted inserted replaced
563:e35d2cda9a74 564:b3d966393ba9
118 @pyqtSlot() 118 @pyqtSlot()
119 def on_newButton_clicked(self): 119 def on_newButton_clicked(self):
120 """ 120 """
121 Private slot to create a new toolbar. 121 Private slot to create a new toolbar.
122 """ 122 """
123 name, ok = QInputDialog.getText(\ 123 name, ok = QInputDialog.getText(
124 self, 124 self,
125 self.trUtf8("New Toolbar"), 125 self.trUtf8("New Toolbar"),
126 self.trUtf8("Toolbar Name:"), 126 self.trUtf8("Toolbar Name:"),
127 QLineEdit.Normal) 127 QLineEdit.Normal)
128 if ok and name: 128 if ok and name:
170 def on_renameButton_clicked(self): 170 def on_renameButton_clicked(self):
171 """ 171 """
172 Private slot to rename a custom toolbar. 172 Private slot to rename a custom toolbar.
173 """ 173 """
174 oldName = self.toolbarComboBox.currentText() 174 oldName = self.toolbarComboBox.currentText()
175 newName, ok = QInputDialog.getText(\ 175 newName, ok = QInputDialog.getText(
176 self, 176 self,
177 self.trUtf8("Rename Toolbar"), 177 self.trUtf8("Rename Toolbar"),
178 self.trUtf8("New Toolbar Name:"), 178 self.trUtf8("New Toolbar Name:"),
179 QLineEdit.Normal, 179 QLineEdit.Normal,
180 oldName) 180 oldName)

eric ide

mercurial