klyn.gui.windows.Window.run
method
public native run() as Int
Description

Shows the window and starts its native event loop until it is closed. Hiding it through isVisible = false does not stop the loop or GUI timers.

Unhandled exceptions from input, timer or painting callbacks propagate to this call instead of leaving an unresponsive window with no rendering. Catch them in the callback when the interaction can recover locally.

Returns

Zero on normal closure, or a nonzero backend failure status.

Throws
  • Exception An unhandled exception raised by a GUI callback.
Example
window = MainWindow("Dashboard")
window.run()