Пример #1
0
 def filesel_ok(self, button, filesel):
     path = filesel.get_filename()
     action = filesel.get_data('action')
     if action == 'getconfig':
         self.editor = DebconfEditorWin(self.conn, self.suite, self.trait)
         self.editor.set_config(path)
     elif action == 'getfromtar':
         select_from_tarfile('getfromtar', path, self.pull_from_tar)
     filesel.destroy()
Пример #2
0
 def tarball_selected(self, button, fileselect):
     path = fileselect.get_filename()
     fileselect.destroy()
     self.dialogs['rootsel'] = select_from_tarfile('heydude', path,
                                                   self.pull_from_tar)
Пример #3
0
 def tarball_selected(self, button, fileselect):
     path = fileselect.get_filename()
     fileselect.destroy()
     self.dialogs['rootsel'] = select_from_tarfile('heydude', path, self.pull_from_tar)