def select(self, info): import GUISelect dialog = GUISelect.selectDialog(self.manager.gui) ret = dialog.run() if not ret: return #print ret import Package pkg = Package.Package() pkg.setPkgname(ret) pkg.install(self.manager.send)
def select(self, info): import GUISelect dialog = GUISelect.selectDialog(self.manager.gui) ret = dialog.run() if not ret: return # print ret import Package pkg = Package.Package() pkg.setPkgname(ret) pkg.install(self.manager.send)
def modadd(self, info): drvname = None try: drvname = self.manager.gui.note_right.drvname except AttributeError: pass import GUISelect dialog = GUISelect.argDialog(self.manager.gui, drvname) ret = dialog.run() if not ret[0] or not ret[1]: return #print ret #src = 2, dst = 3 file = 4 cimpp=56789 import Driver drv = Driver.Driver(ret[1]) drv.install(self.manager.send, ret[4], ret[2], ret[3], ret[5:9])
def modadd(self, info): drvname = None try: drvname = self.manager.gui.note_right.drvname except AttributeError: pass import GUISelect dialog = GUISelect.argDialog(self.manager.gui, drvname) ret = dialog.run() if not ret[0] or not ret[1]: return # print ret # src = 2, dst = 3 file = 4 cimpp=56789 import Driver drv = Driver.Driver(ret[1]) drv.install(self.manager.send, ret[4], ret[2], ret[3], ret[5:9])