diff options
Diffstat (limited to '')
-rw-r--r-- | geneticone/gui/__init__.py | 3 | ||||
-rw-r--r--[-rwxr-xr-x] | geneticone/gui/main.py (renamed from gui.py) | 6 |
2 files changed, 4 insertions, 5 deletions
diff --git a/geneticone/gui/__init__.py b/geneticone/gui/__init__.py new file mode 100644 index 0000000..1efeeaf --- /dev/null +++ b/geneticone/gui/__init__.py @@ -0,0 +1,3 @@ +#!/usr/bin/python + +from main import * diff --git a/gui.py b/geneticone/gui/main.py index fcaccd3..9398b91 100755..100644 --- a/gui.py +++ b/geneticone/gui/main.py @@ -457,7 +457,7 @@ class MainWindow: self.window.connect("delete_event", self.cb_delete) self.window.connect("destroy", self.cb_destroy) self.window.set_border_width(2) - self.window.set_geometry_hints (self.window, min_width = 600, min_height = 700, max_height = gtk.gdk.screen_height(), max_width = gtk.gdk.screen_width()) + self.window.set_geometry_hints (self.window, min_width = 600, min_height = 800, max_height = gtk.gdk.screen_height(), max_width = gtk.gdk.screen_width()) self.window.set_resizable(True) # main vb @@ -556,7 +556,3 @@ def blocked_dialog (blocked, blocks): dialog = gtk.MessageDialog(None, gtk.DIALOG_MODAL, gtk.MESSAGE_ERROR, gtk.BUTTONS_OK, blocked+" is blocked by "+blocks+".\nPlease unmerge the blocking package.") dialog.run() dialog.destroy() - -if __name__ == "__main__": - m = MainWindow() - m.main() |