From 86dd33be02e69c03268dcbbccbf16e8800b309f4 Mon Sep 17 00:00:00 2001 From: Walter Bender Date: Sun, 21 Feb 2010 20:19:10 +0000 Subject: fixed positioning bug --- diff --git a/taconstants.py b/taconstants.py index 0ed4c81..bda0079 100644 --- a/taconstants.py +++ b/taconstants.py @@ -124,8 +124,8 @@ PALETTES = [['clean', 'forward', 'back', 'show', 'left', 'right', 'storeinbox1', 'storeinbox2', 'string', 'box1', 'box2', 'box', 'storein', 'start'], ['kbinput', 'push', 'printheap', 'keyboard', 'pop', 'clearheap', - 'myfunc', 'nop', 'addturtle', 'comment', 'print', 'width', - 'height','sandwichtop', 'sandwichbottom', 'cartesian', 'polar'], + 'myfunc', 'nop', 'addturtle', 'comment', 'print', 'cartesian', + 'width','height', 'polar', 'sandwichtop', 'sandwichbottom'], ['journal', 'audio', 'description', 'savepix', 'hideblocks', 'showblocks', 'fullscreen', 'picturelist', 'picture1x1a', 'picture1x1', 'picture2x2', 'picture2x1', 'picture1x2'], diff --git a/tawindow.py b/tawindow.py index 5e9538a..ebbcbd1 100644 --- a/tawindow.py +++ b/tawindow.py @@ -684,7 +684,7 @@ class TurtleArtWindow(): svg = SVG() self.palette_sprs[n][self.orientation].set_shape( svg_str_to_pixbuf(svg.palette(_w, PALETTE_HEIGHT))) - self.palette_button[2].move((_w-20, 0)) + self.palette_button[2].move((_w-20, self.toolbar_offset)) else: _x, _y = 5, self.toolbar_offset+15 _x, _y, _max = self._vertical_layout(_x, _y, self.palettes[n]) @@ -702,7 +702,8 @@ class TurtleArtWindow(): svg = SVG() self.palette_sprs[n][self.orientation].set_shape( svg_str_to_pixbuf(svg.palette(PALETTE_WIDTH, _h))) - self.palette_button[2].move((PALETTE_WIDTH-20, 0)) + self.palette_button[2].move((PALETTE_WIDTH-20, + self.toolbar_offset)) self.palette_sprs[n][self.orientation].set_layer(CATEGORY_LAYER) """ -- cgit v0.9.1