summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xtsp.py7
1 files changed, 3 insertions, 4 deletions
diff --git a/tsp.py b/tsp.py
index 8db802b..bc037f6 100755
--- a/tsp.py
+++ b/tsp.py
@@ -457,6 +457,9 @@ class AlgoGui (gtk.Window):
alignment.add (self.canvas)
box.pack_start (alignment, False, False)
hbox = gtk.HBox ()
+ alignment = gtk.Alignment (0.5, 0.5, 0, 0)
+ alignment.add (hbox)
+ box.pack_start (alignment, False, False)
# Init methods
self.init_box = gtk.combo_box_new_text ()
map (self.init_box.append_text, INITS)
@@ -491,10 +494,6 @@ class AlgoGui (gtk.Window):
names_button.connect ("toggled", self.toggle_show_names)
names_button.set_active (True)
hbox.pack_start (names_button, False, False)
- alignment = gtk.Alignment (0.5, 0.5, 0, 0)
- alignment.add (hbox)
- box.pack_start (alignment, False, False)
- box.show_all ()
# Informative labels
self.best_label = gtk.Label ()
self.update_best (length = None)