summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xtsp.py4
1 files changed, 3 insertions, 1 deletions
diff --git a/tsp.py b/tsp.py
index 2bcc97c..8db802b 100755
--- a/tsp.py
+++ b/tsp.py
@@ -453,7 +453,9 @@ class AlgoGui (gtk.Window):
box = gtk.VBox ()
self.add (box)
self.canvas = AlgoCanvas (self.context) # Our canvas
- box.pack_start (self.canvas, False, False)
+ alignment = gtk.Alignment (0.5, 0.5, 0, 0)
+ alignment.add (self.canvas)
+ box.pack_start (alignment, False, False)
hbox = gtk.HBox ()
# Init methods
self.init_box = gtk.combo_box_new_text ()