def addDir(self): path = KFileDialog.getExistingDirectory( KUrl('') , self , i18nc('@title:window', 'Select a Directory with CMake Modules') ) kate.kDebug('CMakeCC: got path={}'.format(path)) self.moduleDirs.addItem(str(path))
def on_browseButton_pressed(self): path = KFileDialog.getExistingDirectory(self.parentWidget(), i18n("Choose Directory")) if path != '':
def on_browseButton_pressed(self): path = KFileDialog.getExistingDirectory(self.parentWidget(), i18n("Choose Directory")) if path != '': self.path = path self.folderLabel.setText(self.path)