#!/usr/bin/python3 import remi.gui as gui from remi import start, App import random class MyApp(App): def __init__(self, *args): super(MyApp, self).__init__(*args) def changeValues(self,widget): for w in self.lots_of_widgets: w.set_text(str(random.random())) def main(self): self.main_container=gui.VBox() self.button=gui.Button("Change all widgets") self.button.onclick.do(self.changeValues) self.main_container.append(self.button) self.lots_of_widgets=[] for i in range(100): self.lots_of_widgets.append(gui.Label(str(i))) self.main_container.append(self.lots_of_widgets[-1]) return self.main_container if __name__ == "__main__": start(MyApp, debug=True, address='0.0.0.0', port=8026)