コード例 #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()
コード例 #2
0
ファイル: refresher_application.py プロジェクト: rwl/muntjac
 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()
コード例 #3
0
ファイル: test.py プロジェクト: fbeneventi/muntjac
    def init(self):
        main = Window('Muntjac')
        main.setTheme('sampler-reindeer')
        self.setMainWindow(main)

        main.addComponent(Example())
コード例 #4
0
ファイル: test.py プロジェクト: AvdN/muntjac
    def init(self):
        main = Window('Muntjac')
        main.setTheme('sampler-reindeer')
        self.setMainWindow(main)

        main.addComponent(Example())