Debugger/StartDialog.py

changeset 564
b3d966393ba9
parent 112
16893e193e9d
child 791
9ec2ac20e54e
equal deleted inserted replaced
563:e35d2cda9a74 564:b3d966393ba9
69 elif type == 3: 69 elif type == 3:
70 from .Ui_StartProfileDialog import Ui_StartProfileDialog 70 from .Ui_StartProfileDialog import Ui_StartProfileDialog
71 self.ui = Ui_StartProfileDialog() 71 self.ui = Ui_StartProfileDialog()
72 self.ui.setupUi(self) 72 self.ui.setupUi(self)
73 73
74 self.clearButton = self.ui.buttonBox.addButton(\ 74 self.clearButton = self.ui.buttonBox.addButton(
75 self.trUtf8("Clear Histories"), QDialogButtonBox.ActionRole) 75 self.trUtf8("Clear Histories"), QDialogButtonBox.ActionRole)
76 76
77 self.workdirCompleter = E5DirCompleter(self.ui.workdirCombo) 77 self.workdirCompleter = E5DirCompleter(self.ui.workdirCombo)
78 78
79 self.setWindowTitle(caption) 79 self.setWindowTitle(caption)
113 def on_dirButton_clicked(self): 113 def on_dirButton_clicked(self):
114 """ 114 """
115 Private method used to open a directory selection dialog. 115 Private method used to open a directory selection dialog.
116 """ 116 """
117 cwd = self.ui.workdirCombo.currentText() 117 cwd = self.ui.workdirCombo.currentText()
118 d = QFileDialog.getExistingDirectory(\ 118 d = QFileDialog.getExistingDirectory(
119 self, 119 self,
120 self.trUtf8("Working directory"), 120 self.trUtf8("Working directory"),
121 cwd, 121 cwd,
122 QFileDialog.Options(QFileDialog.ShowDirsOnly)) 122 QFileDialog.Options(QFileDialog.ShowDirsOnly))
123 123
126 126
127 def on_modFuncCombo_editTextChanged(self): 127 def on_modFuncCombo_editTextChanged(self):
128 """ 128 """
129 Private slot to enable/disable the OK button. 129 Private slot to enable/disable the OK button.
130 """ 130 """
131 self.ui.buttonBox.button(QDialogButtonBox.Ok).setDisabled(\ 131 self.ui.buttonBox.button(QDialogButtonBox.Ok).setDisabled(
132 self.ui.modFuncCombo.currentText() == "") 132 self.ui.modFuncCombo.currentText() == "")
133 133
134 def getData(self): 134 def getData(self):
135 """ 135 """
136 Public method to retrieve the data entered into this dialog. 136 Public method to retrieve the data entered into this dialog.

eric ide

mercurial