def __init__(self, *args): QtGui.QWidget.__init__(self, None) self.ui = Ui_welcomeWidget() self.ui.setupUi(self) Widget.desc = unicode(Widget.desc) % tools.getRelease() self.autofile = os.path.expanduser( "~/.config/autostart/kapudan.desktop")
def __init__(self, *args): QtGui.QWidget.__init__(self, None) self.ui = Ui_welcomeWidget() self.ui.setupUi(self) Widget.desc = unicode(Widget.desc) % tools.getRelease() self.autofile = os.path.expanduser("~/.config/autostart/kapudan.desktop")
class Widget(QtGui.QWidget, Screen): title = i18n("Welcome") desc = i18n("Welcome to %s") def __init__(self, *args): QtGui.QWidget.__init__(self, None) self.ui = Ui_welcomeWidget() self.ui.setupUi(self) Widget.desc = unicode(Widget.desc) % tools.getRelease() self.autofile = os.path.expanduser("~/.config/autostart/kapudan.desktop") def shown(self): try: os.remove(self.autofile) except OSError: pass def execute(self): return True
class Widget(QtGui.QWidget, Screen): title = i18n("Welcome") desc = i18n("Welcome to %s") def __init__(self, *args): QtGui.QWidget.__init__(self, None) self.ui = Ui_welcomeWidget() self.ui.setupUi(self) Widget.desc = unicode(Widget.desc) % tools.getRelease() self.autofile = os.path.expanduser( "~/.config/autostart/kapudan.desktop") def shown(self): try: os.remove(self.autofile) except OSError: pass def execute(self): return True