diff options
author | Nicholas Bishop <nicholasbishop@gmail.com> | 2015-07-04 23:45:08 -0400 |
---|---|---|
committer | Nicholas Bishop <nicholasbishop@gmail.com> | 2015-07-04 23:45:08 -0400 |
commit | f4c8471a5bface749f04aa1b80a0200e174849ad (patch) | |
tree | f581af95f7394363d5778e0024d7e70c4321f3a2 | |
parent | License comment (diff) | |
download | xbright-f4c8471a5bface749f04aa1b80a0200e174849ad.tar.gz xbright-f4c8471a5bface749f04aa1b80a0200e174849ad.tar.bz2 xbright-f4c8471a5bface749f04aa1b80a0200e174849ad.zip |
Add main function
-rwxr-xr-x | xsft.py | 13 |
1 files changed, 9 insertions, 4 deletions
@@ -109,7 +109,12 @@ class MyWindow(Gtk.Window): temperature_to_gamma(self.temperature.get_value())) -win = MyWindow() -win.connect("delete-event", Gtk.main_quit) -win.show_all() -Gtk.main() +def main(): + win = MyWindow() + win.connect("delete-event", Gtk.main_quit) + win.show_all() + Gtk.main() + + +if __name__ == '__main__': + main() |