diff options
author | Aleksey Lim <alsroot@member.fsf.org> | 2009-01-03 21:46:07 (GMT) |
---|---|---|
committer | Aleksey Lim <alsroot@member.fsf.org> | 2009-01-17 22:58:52 (GMT) |
commit | 886f64fd1f61ed2ff218cfc2b845b20b1322cb2a (patch) | |
tree | 3b1a4fc5fc142fbdd874a7de1de94828babf23df | |
parent | dd51c2a168f4659394f50e429c025946daaf23ef (diff) |
adapt to non-XO screen resolution
-rw-r--r-- | flipsticks.py | 14 | ||||
-rw-r--r-- | flipsticks.pyc | bin | 37706 -> 0 bytes |
2 files changed, 9 insertions, 5 deletions
diff --git a/flipsticks.py b/flipsticks.py index 05b9290..3777e87 100644 --- a/flipsticks.py +++ b/flipsticks.py @@ -114,17 +114,21 @@ LANG = {'English':{'size':'Size', 'LOWER LEFT LEG':u'Una pierna izquierda m\xe1s baja', 'LEFT FOOT':'Pie izquierdo'}} -DRAWWIDTH = 750 -DRAWHEIGHT = 500 FPWIDTH = 150 FPHEIGHT = 100 #DRAWHEIGHT = 300 for my laptop -KEYFRAMEWIDTH = 675 +KEYFRAMEWIDTH = gtk.gdk.screen_width() - 406 # 675 KEYFRAMEHEIGHT = 80 +DRAWWIDTH = KEYFRAMEWIDTH + 64 # 750 +DRAWHEIGHT = gtk.gdk.screen_height() - 370 # 500 -KEYFRAMES = [50,190,337,487,625] +KEYFRAMES = [] # [50,190,337,487,625] TOTALFRAMES = 30 +for i in range(5): + keyframe_width = KEYFRAMEWIDTH/5 + KEYFRAMES.append(keyframe_width/2 + i*keyframe_width) + STICKS = {'HEAD':(0,15), 'NECK':(90,15), 'RIGHT SHOULDER':(185,25), @@ -1417,7 +1421,7 @@ class flipsticks: #self.drawhbox.pack_start(self.drawborder, False, False, 10) #self.vbox.pack_start(self.drawhbox,False,False,0) - self.vbox.pack_start(self.drawborder,False,False,0) + self.vbox.pack_start(self.drawborder,True,False,0) self.keyframehbox = gtk.HBox() self.keyframehbox.show() diff --git a/flipsticks.pyc b/flipsticks.pyc Binary files differdeleted file mode 100644 index eb37f54..0000000 --- a/flipsticks.pyc +++ /dev/null |