Project/NewDialogClassDialog.py

changeset 3034
7ce719013078
parent 2995
63d874899b8b
child 3060
5883ce99ee12
child 3160
209a07d7e401
equal deleted inserted replaced
3033:58fe260e7469 3034:7ce719013078
59 def __enableOkButton(self): 59 def __enableOkButton(self):
60 """ 60 """
61 Private slot to set the enable state of theok button. 61 Private slot to set the enable state of theok button.
62 """ 62 """
63 self.okButton.setEnabled( 63 self.okButton.setEnabled(
64 self.classnameEdit.text() != "" and \ 64 self.classnameEdit.text() != "" and
65 self.filenameEdit.text() != "" and \ 65 self.filenameEdit.text() != "" and
66 self.pathnameEdit.text() != "") 66 self.pathnameEdit.text() != "")
67 67
68 def on_classnameEdit_textChanged(self, text): 68 def on_classnameEdit_textChanged(self, text):
69 """ 69 """
70 Private slot called, when thext of the classname edit has changed. 70 Private slot called, when thext of the classname edit has changed.
94 Public method to retrieve the data entered into the dialog. 94 Public method to retrieve the data entered into the dialog.
95 95
96 @return tuple giving the classname (string) and the file name (string) 96 @return tuple giving the classname (string) and the file name (string)
97 """ 97 """
98 return self.classnameEdit.text(), \ 98 return self.classnameEdit.text(), \
99 os.path.join(self.pathnameEdit.text(), \ 99 os.path.join(self.pathnameEdit.text(),
100 self.filenameEdit.text()) 100 self.filenameEdit.text())

eric ide

mercurial