changeset 262:6f96e28e6cfd pyweek final submission

Tweak text position
author Neil Muller <drnlmuller@gmail.com>
date Sun, 13 May 2012 01:55:08 +0200
parents 2a658a2f5d3b
children d29bb7934527
files gamelib/gamegui.py
diffstat 1 files changed, 18 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/gamelib/gamegui.py	Sun May 13 01:51:31 2012 +0200
+++ b/gamelib/gamegui.py	Sun May 13 01:55:08 2012 +0200
@@ -48,6 +48,9 @@
 
 
 class ExitGameButton(PopWindowButton):
+
+    HEIGHT = 72
+
     def __init__(self):
         super(ExitGameButton, self).__init__((WIDTH - 128, HEIGHT - 60),
                 'Exit')
@@ -55,6 +58,8 @@
 
 class EndTurnButton(BigButton):
 
+    HEIGHT = 72
+
     def __init__(self, parent):
         super(EndTurnButton, self).__init__(((WIDTH - 128), 0), 'End Turn')
         self.parent = parent
@@ -64,11 +69,17 @@
 
 
 class NextTurnButton(PopWindowButton):
+
+    HEIGHT = 72
+
     def __init__(self):
         super(NextTurnButton, self).__init__(((WIDTH - 128), 0), 'Next Turn')
 
 
 class AssignButton(PopWindowButton):
+
+    HEIGHT = 72
+
     def __init__(self, parent):
         super(AssignButton, self).__init__(((WIDTH - 128), 0),
                 'Assign Scheme')
@@ -80,6 +91,9 @@
 
 
 class CancelButton(PopWindowButton):
+
+    HEIGHT = 72
+
     def __init__(self, parent):
         super(CancelButton, self).__init__(((WIDTH - 256), 0),
                 'Cancel Scheme')
@@ -92,6 +106,8 @@
 
 class ResetButton(BigButton):
 
+    HEIGHT = 72
+
     def __init__(self, parent, text='Clear calendars'):
         super(ResetButton, self).__init__((10, 0), text)
         self.parent = parent
@@ -102,6 +118,8 @@
 
 class SwitchWinButton(BigButton):
 
+    HEIGHT = 72
+
     def __init__(self, pos, text, new_window):
         super(SwitchWinButton, self).__init__(pos, text)
         self.new_window = new_window