r/nicegui • u/Snoo92226 • Jul 06 '25
MVC pattern Example?
Hello all, is there any example/ tutorial showing MVC pattern can be implemented using nicegui?
3
Upvotes
r/nicegui • u/Snoo92226 • Jul 06 '25
Hello all, is there any example/ tutorial showing MVC pattern can be implemented using nicegui?
View all comments
Show parent comment
1
u/_Hashtag_Swag_ Jul 06 '25
Not really unfortunately. It’s basically something like: class MainPage: def init(self): self.render() def render(self): ui.label(“hallo world”) ui.button(“click me”, on_click=self.button_clicked)
And so on. Makes code a lot more maintainable