Project/NewDialogClassDialog.py

changeset 3186
a05eff845522
parent 3160
209a07d7e401
child 3190
a9a94491c4fd
equal deleted inserted replaced
3185:d4fa462547bc 3186:a05eff845522
15 from E5Gui.E5Completers import E5DirCompleter 15 from E5Gui.E5Completers import E5DirCompleter
16 from E5Gui import E5FileDialog 16 from E5Gui import E5FileDialog
17 17
18 from .Ui_NewDialogClassDialog import Ui_NewDialogClassDialog 18 from .Ui_NewDialogClassDialog import Ui_NewDialogClassDialog
19 19
20 import UI.PixmapCache
21
20 22
21 class NewDialogClassDialog(QDialog, Ui_NewDialogClassDialog): 23 class NewDialogClassDialog(QDialog, Ui_NewDialogClassDialog):
22 """ 24 """
23 Class implementing a dialog to ente the data for a new dialog class file. 25 Class implementing a dialog to ente the data for a new dialog class file.
24 """ 26 """
32 @param defaultPath default path for the new file (string) 34 @param defaultPath default path for the new file (string)
33 @param parent parent widget if the dialog (QWidget) 35 @param parent parent widget if the dialog (QWidget)
34 """ 36 """
35 super().__init__(parent) 37 super().__init__(parent)
36 self.setupUi(self) 38 self.setupUi(self)
39
40 self.pathButton.setIcon(UI.PixmapCache.getIcon("open.png"))
37 41
38 self.okButton = self.buttonBox.button(QDialogButtonBox.Ok) 42 self.okButton = self.buttonBox.button(QDialogButtonBox.Ok)
39 self.okButton.setEnabled(False) 43 self.okButton.setEnabled(False)
40 44
41 self.pathnameCompleter = E5DirCompleter(self.pathnameEdit) 45 self.pathnameCompleter = E5DirCompleter(self.pathnameEdit)

eric ide

mercurial