]> git.datanom.net - lensdatabase.git/blob - lensdb.py
Initial upload
[lensdatabase.git] / lensdb.py
1 #!/usr/bin/python
2
3 import gi
4
5 gi.require_version("Gtk", "3.0")
6 from gi.repository import Gtk
7
8 dirty = False
9
10 class Handler:
11 def onDestroy(self, *args):
12 Gtk.main_quit()
13 def onQuit(self, *args):
14 if dirty:
15 """ show warning """
16 self.onDestroy(self, args)
17
18 builder = Gtk.Builder()
19 builder.add_from_file("lensdatabase.ui")
20 builder.connect_signals(Handler())
21
22 window = builder.get_object("main_window")
23 window.show_all()
24
25 Gtk.main()
This page took 0.124442 seconds and 6 git commands to generate.