]> git.datanom.net - lensdatabase.git/blame - lensdb.py
Initial upload
[lensdatabase.git] / lensdb.py
CommitLineData
365c79d4
MR
1#!/usr/bin/python
2
3import gi
4
5gi.require_version("Gtk", "3.0")
6from gi.repository import Gtk
7
8dirty = False
9
10class 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
18builder = Gtk.Builder()
19builder.add_from_file("lensdatabase.ui")
20builder.connect_signals(Handler())
21
22window = builder.get_object("main_window")
23window.show_all()
24
25Gtk.main()
This page took 0.054775 seconds and 5 git commands to generate.