Ejemplo n.º 1
0
 def init(self):
     mainWindow = Window('Refresher Database Example')
     self.setMainWindow(mainWindow)
     # present with a loading contents.
     self._content = Label('please wait while the database is queried')
     mainWindow.addComponent(self._content)
     # the Refresher polls automatically
     refresher = Refresher()
     refresher.addListener(DatabaseListener(self))
     mainWindow.addComponent(refresher)
     DatabaseQueryProcess(self).start()
Ejemplo n.º 2
0
 def init(self):
     mainWindow = Window("Refresher Database Example")
     self.setMainWindow(mainWindow)
     # present with a loading contents.
     self._content = Label("please wait while the database is queried")
     mainWindow.addComponent(self._content)
     # the Refresher polls automatically
     refresher = Refresher()
     refresher.addListener(DatabaseListener(self))
     mainWindow.addComponent(refresher)
     DatabaseQueryProcess(self).start()
Ejemplo n.º 3
0
    def init(self):
        main = Window('Muntjac')
        main.setTheme('sampler-reindeer')
        self.setMainWindow(main)

        main.addComponent(Example())
Ejemplo n.º 4
0
Archivo: test.py Proyecto: AvdN/muntjac
    def init(self):
        main = Window('Muntjac')
        main.setTheme('sampler-reindeer')
        self.setMainWindow(main)

        main.addComponent(Example())