summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGuillaume Seguin <guillaume@segu.in>2007-12-17 13:10:02 +0100
committerGuillaume Seguin <guillaume@segu.in>2007-12-17 13:10:02 +0100
commite3bc3203c9662215660f305810bd0fd83f54299c (patch)
tree4fc08f2540463de4fc21bc1a6ec6c6fc319cedfa
parentdbeb6c0bc719c87197fa6bf292834781d665de1f (diff)
downloadtsp-e3bc3203c9662215660f305810bd0fd83f54299c.tar.gz
tsp-e3bc3203c9662215660f305810bd0fd83f54299c.tar.bz2
* Minor cleanup
-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)