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 = QVariant(unicode(str(Widget.desc)) % tools.getRelease()) def shown(self): pass def execute(self): return True
class Widget(QtGui.QWidget, Screen): title = ki18n("Welcome") desc = ki18n("Welcome to %s") def __init__(self, *args): QtGui.QWidget.__init__(self,None) self.ui = Ui_welcomeWidget() self.ui.setupUi(self) Widget.desc = QVariant(unicode(Widget.desc.toString()) % tools.getRelease()) def shown(self): pass def execute(self): return True
def __init__(self, *args): QtGui.QWidget.__init__(self, None) self.ui = Ui_welcomeWidget() self.ui.setupUi(self) Widget.desc = QVariant(unicode(str(Widget.desc)) % tools.getRelease())
def __init__(self, *args): QtGui.QWidget.__init__(self,None) self.ui = Ui_welcomeWidget() self.ui.setupUi(self) Widget.desc = QVariant(unicode(Widget.desc.toString()) % tools.getRelease())