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()
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()
def init(self): main = Window('Muntjac') main.setTheme('sampler-reindeer') self.setMainWindow(main) main.addComponent(Example())
def init(self): main = Window('Muntjac') main.setTheme('sampler-reindeer') self.setMainWindow(main) main.addComponent(Example())