33 lines
782 B
Python
33 lines
782 B
Python
"""Application bootstrap and main window assembly (IDE chrome).
|
|
|
|
Phase 0 skeleton: opens the main designer window. The canvas, palette,
|
|
Inspector and code view are wired in by later phases.
|
|
"""
|
|
|
|
import gi
|
|
|
|
gi.require_version("Gtk", "3.0")
|
|
|
|
from gi.repository import Gtk
|
|
|
|
from lightgui import __version__
|
|
|
|
|
|
class Application:
|
|
def __init__(self):
|
|
self.window = Gtk.Window(title="LightGUI — Python/GTK")
|
|
self.window.set_default_size(1280, 800)
|
|
self.window.connect("destroy", Gtk.main_quit)
|
|
label = Gtk.Label(label=f"LightGUI Python port {__version__} — skeleton")
|
|
self.window.add(label)
|
|
|
|
def run(self):
|
|
self.window.show_all()
|
|
Gtk.main()
|
|
return 0
|
|
|
|
|
|
def main(argv):
|
|
app = Application()
|
|
return app.run()
|