Mercurial > sypikslang
diff gamelib/gamegui.py @ 262:6f96e28e6cfd pyweek final submission
Tweak text position
author | Neil Muller <drnlmuller@gmail.com> |
---|---|
date | Sun, 13 May 2012 01:55:08 +0200 |
parents | c949ac17cfd9 |
children | d2d1d9ccb22d |
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