summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGuillaume Seguin <guillaume@segu.in>2007-12-17 12:58:24 +0100
committerGuillaume Seguin <guillaume@segu.in>2007-12-17 12:58:24 +0100
commitdbeb6c0bc719c87197fa6bf292834781d665de1f (patch)
tree026b56a53c7a252a4e7a0656b84e51ffd198af28
parent6d1ea15cbff74e7acd461cf1d9571ccb944b6cc1 (diff)
downloadtsp-dbeb6c0bc719c87197fa6bf292834781d665de1f.tar.gz
tsp-dbeb6c0bc719c87197fa6bf292834781d665de1f.tar.bz2
* Center canvas horizontally
-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 ()