Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
path: root/main.py
diff options
context:
space:
mode:
Diffstat (limited to 'main.py')
-rwxr-xr-xmain.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/main.py b/main.py
index ecf6f44..14604b8 100755
--- a/main.py
+++ b/main.py
@@ -66,6 +66,8 @@ class Game:
if s_w < (w * (self.box_size[0] + 1)):
print 'pasa x'
+ value = int(s_w / (self.box_size[0] + 1.0)) - 1
+ self.parent.h_spin_set_max(value)
return
else:
xx = w * (self.box_size[0] - 1)
@@ -73,6 +75,8 @@ class Game:
if s_h < (h * (self.box_size[1] + 1)):
print 'pasa y'
+ value = int(s_h / (self.box_size[1] + 1.0)) - 1
+ self.parent.v_spin_set_max(value)
return
else:
yy = h * (self.box_size[1] - 1)