Window(title='Edifice Application', icon=None, menu=None, on_close=None)¶
Component that displays its child as a window.
Window will mount its child as a window. It can be created as a child of any standard container. This is useful if a window is logically associated with
class MyApp(Component): def render(self): return View()( Window(Label("Hello"), title="Hello"), ) if __name__ == "__main__": App(MyApp()).start()
str) – the window title
None]) – the window icon
menu – the window’s menu bar. In some GUI settings, for example Mac OS, this menu will appear seperately from the window.
Any]]) – event handler for when this window is closed.
Callback function that is called when the component will unmount.
The children of this component.
The props of this component.