Changeset 234
- Timestamp:
- 01/04/07 03:52:49 (5 years ago)
- Files:
-
- 1 modified
-
trunk/src/pyspacewar/ui.py (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/pyspacewar/ui.py
r233 r234 994 994 ypadding, yspacing) 995 995 996 def position(self, surface, margin= 10):996 def position(self, surface, margin=20): 997 997 """Calculate screen position for the widget.""" 998 998 width = surface.get_width() - 2 * margin - 2 * self.xpadding … … 1493 1493 self.on_key(K_DELETE, self.clear_item) 1494 1494 self.on_key(K_KP_PERIOD, self.clear_item) 1495 self.version = HUDLabel(self.ui.hud_font, 1496 "Press ENTER to change a binding," 1497 " BACKSPACE to clear it", 1498 0.5, 1) 1495 1499 1496 1500 def items(self, label, items):
