class Widget(QtGui.QWidget, Screen): title = ki18n("More") 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 == "tr": self.helpPageUrl = "http://www.pardus-anka.org" else: self.helpPageUrl = "http://worldforum.pardus-linux.nl" def on_buttonSystemSettings_clicked(self): self.procSettings = QProcess() self.procSettings.start("systemsettings") def on_buttonHelpPages_clicked(self): self.procSettings = QProcess() command = "kfmclient openURL " + self.helpPageUrl self.procSettings.start(command) def execute(self): return True
def __init__(self, *args): QtGui.QWidget.__init__(self, None) self.ui = Ui_goodbyeWidget() self.ui.setupUi(self) lang = KGlobal.locale().language() if lang == "tr": self.helpPageUrl = "http://www.pardus-anka.org" else: self.helpPageUrl = "http://worldforum.pardus-linux.nl"
def __init__(self, *args): QtGui.QWidget.__init__(self, None) self.ui = Ui_goodbyeWidget() self.ui.setupUi(self) lang = KGlobal.locale().language() if lang == "tr": self.helpPageUrl = "http://www.pisilinux.org" else: self.helpPageUrl = "http://www.pisilinuxworld.org" self.smoltUrl = "http://smolt.pisilinux.org:8090"
class Widget(QtGui.QWidget, Screen): title = i18n("More") desc = i18n("Congratulations!") def __init__(self, *args): QtGui.QWidget.__init__(self,None) self.ui = Ui_goodbyeWidget() self.ui.setupUi(self) var=Desktop.common.getLanguage() if var == "Turkish" or var == "tr": self.helpPageUrl = "http://www.pardus.org.tr/destek" else: self.helpPageUrl = "http://www.pardus.org.tr/eng/support" self.smoltUrl = "http://smolt.pardus.org.tr:8090" def on_buttonSystemSettings_clicked(self): Desktop.common.systemSettingsButton() def on_buttonHelpPages_clicked(self): self.procSettings = QProcess() if ctx.Pds.session == ctx.pds.Gnome3: command = "chromium-browser " + self.helpPageUrl else: command = "firefox " + self.helpPageUrl self.procSettings.start(command) def on_buttonSystemSettings_2_clicked(self): self.procSettings = QProcess() if ctx.Pds.session == ctx.pds.Gnome3: command = "chromium-browser " + self.helpPageUrl else: command = "firefox " + self.smoltUrl self.procSettings.start(command) def setSmolt(self): # Smolt Settings if self.smoltSettings["profileSend"]: self.procSettings = QProcess() command = "smoltSendProfile" arguments = ["-a", "--submitOnly"] self.procSettings.startDetached(command, arguments) # if not self.smoltSettings["profileSend"]: # self.ui.smoltGroupBox.hide() # self.ui.label.hide() def shown(self): self.smoltSettings = smoltWidget.Widget.screenSettings self.setSmolt() def execute(self): return True
def __init__(self, *args): QtGui.QWidget.__init__(self, None) self.ui = Ui_goodbyeWidget() self.ui.setupUi(self) lang = KGlobal.locale().language() if lang == "tr": self.helpPageUrl = "http://www.pardus.org.tr/destek" else: self.helpPageUrl = "http://www.pardus.org.tr/eng/support" self.smoltUrl = "http://smolt.pardus.org.tr:8090"
class Widget(QtGui.QWidget, Screen): title = ki18n("More") 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 == "tr": self.helpPageUrl = "http://www.pisilinux.org" else: self.helpPageUrl = "http://www.pisilinuxworld.org" self.smoltUrl = "http://smolt.pisilinux.org:8090" def on_buttonSystemSettings_clicked(self): self.procSettings = QProcess() self.procSettings.start("systemsettings") def on_buttonHelpPages_clicked(self): self.procSettings = QProcess() command = "kfmclient openURL " + self.helpPageUrl self.procSettings.start(command) def on_buttonSystemSettings_2_clicked(self): self.procSettings = QProcess() command = "kfmclient openURL " + self.smoltUrl self.procSettings.start(command) def setSmolt(self): if not self.smoltSettings["profileSend"]: self.ui.smoltGroupBox.hide() self.ui.label.hide() def shown(self): self.smoltSettings = smoltWidget.Widget.screenSettings self.setSmolt() def execute(self): return True
class Widget(QtGui.QWidget, Screen): title = ki18n("More") 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 == "tr": self.helpPageUrl = "http://www.pisilinux.org" else: self.helpPageUrl = "http://www.pisilinuxworld.org" self.smoltUrl = "http://smolt.pisilinux.org:8090" def on_buttonSystemSettings_clicked(self): self.procSettings = QProcess() self.procSettings.start("systemsettings") def on_buttonHelpPages_clicked(self): self.procSettings = QProcess() command = "kfmclient openURL " + self.helpPageUrl self.procSettings.start(command) def on_buttonSystemSettings_2_clicked(self): self.procSettings = QProcess() command = "kfmclient openURL " + self.smoltUrl self.procSettings.start(command) def setSmolt(self): if not self.smoltSettings["profileSend"]: self.ui.smoltGroupBox.hide() self.ui.label.hide() def shown(self): self.smoltSettings = smoltWidget.Widget.screenSettings self.setSmolt() def execute(self): return True
def __init__(self, *args): QtGui.QWidget.__init__(self,None) self.ui = Ui_goodbyeWidget() self.ui.setupUi(self) var=Desktop.common.getLanguage() if var == "Turkish" or var == "tr": self.helpPageUrl = "http://www.pardus.org.tr/destek" else: self.helpPageUrl = "http://www.pardus.org.tr/eng/support" self.smoltUrl = "http://smolt.pardus.org.tr:8090"
def __init__(self, *args): QtGui.QWidget.__init__(self,None) self.ui = Ui_goodbyeWidget() self.ui.setupUi(self) lang = KGlobal.locale().language() if lang == "tr": self.helpPageUrl = "http://www.pisilinux.org" else: self.helpPageUrl = "http://www.pisilinuxworld.org" self.smoltUrl = "http://smolt.pisilinux.org:8090"
def __init__(self, *args): QtGui.QWidget.__init__(self,None) self.ui = Ui_goodbyeWidget() self.ui.setupUi(self) lang = KGlobal.locale().language() if lang == "tr": self.helpPageUrl = "http://www.pardus.org.tr/destek" else: self.helpPageUrl = "http://www.pardus.org.tr/eng/support" self.smoltUrl = "http://smolt.pardus.org.tr:8090"