def _slotFileio(self, actiontype): filesel = KFileDialog('.', '', self, '%sEnvironment' % actiontype.upper(), True) filesel.actiontype = actiontype self.connect(filesel, SIGNAL('okClicked()'), self.file_selected) filesel.show() self.filesel = filesel