aboutsummaryrefslogtreecommitdiff
path: root/xsft.py
diff options
context:
space:
mode:
Diffstat (limited to 'xsft.py')
-rwxr-xr-xxsft.py13
1 files changed, 9 insertions, 4 deletions
diff --git a/xsft.py b/xsft.py
index 9852893..3f175a5 100755
--- a/xsft.py
+++ b/xsft.py
@@ -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()
bgstack15