Пример #1
0
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
Пример #2
0
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
Пример #3
0
 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())
Пример #4
0
 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())