def __init__(self, *args): QtGui.QWidget.__init__(self,None) self.ui = Ui_goodbyeWidget() self.ui.setupUi(self) lang = KGlobal.locale().language() if lang == "hu": self.helpPageUrl = "http://www.facebook.com/blackpantheros" else: self.helpPageUrl = "http://www.blackpantheros.eu" self.smoltUrl = "http://backend.blackpanther.hu" users = partition.allUsers() # ittkapcsoldki if not users: self.ui.migrationGroupBox.hide() #idaig self.ui.buttonSystemSettings_2.connect(self.ui.buttonSystemSettings_2, SIGNAL("clicked()"), self.startSmolt) self.ui.buttonMigration.connect(self.ui.buttonMigration, SIGNAL("clicked()"), self.startMigration) self.ui.buttonSystemSettings.connect(self.ui.buttonSystemSettings, SIGNAL("clicked()"), self.startSystemSettings) self.ui.buttonHelpPages.connect(self.ui.buttonHelpPages, SIGNAL("clicked()"), self.startHelpPages)
class Widget(QtGui.QWidget, ScreenWidget): title = ki18n("Apply Settings") desc = ki18n("Congratulations!") def __init__(self, *args): QtGui.QWidget.__init__(self,None) self.ui = Ui_goodbyeWidget() self.ui.setupUi(self) lang = KGlobal.locale().language() if lang == "hu": self.helpPageUrl = "http://www.facebook.com/blackpantheros" else: self.helpPageUrl = "http://www.blackpantheros.eu" self.smoltUrl = "http://backend.blackpanther.hu" users = partition.allUsers() # ittkapcsoldki if not users: self.ui.migrationGroupBox.hide() #idaig self.ui.buttonSystemSettings_2.connect(self.ui.buttonSystemSettings_2, SIGNAL("clicked()"), self.startSmolt) self.ui.buttonMigration.connect(self.ui.buttonMigration, SIGNAL("clicked()"), self.startMigration) self.ui.buttonSystemSettings.connect(self.ui.buttonSystemSettings, SIGNAL("clicked()"), self.startSystemSettings) self.ui.buttonHelpPages.connect(self.ui.buttonHelpPages, SIGNAL("clicked()"), self.startHelpPages) def startSystemSettings(self): print "System Settings" self.procSettings = QProcess() self.procSettings.start("systemsettings") def startMigration(self): print "Migration tool" self.procSettings = QProcess() self.procSettings.start("migration") def startHelpPages(self): print "Start Help Pages" self.procSettings = QProcess() command = "default-browser " + self.helpPageUrl self.procSettings.start(command) def startSmolt(self): print "Start HW Details Sending" self.procSettings = QProcess() command = "default-browser " + self.smoltUrl self.procSettings.start(command) #def setSmolt(self): # if self.smoltSettings["profileSend"] == False: # self.ui.smoltGroupBox.setVisible(False) #def shown(self): #self.smoltSettings = smoltWidget.Widget.screenSettings #self.setSmolt() def execute(self): return True