PyScore

01: # -*- python -*-
02: #### guicon.py #### python package PyScore.timesheet module gui.controller ####
03: 
04: # PyScore
05: # a race scoring programme
06: # written by Matt Draisey
07: # 2004 April 6
08: 
09: reloadable=True
10: reloadables=[]
11: 
12: #### guicon.py #### python package PyScore.timesheet module gui.controller ####
13: 
14: import gtk,gobject
15: from timesheet import guiview
16: 
17: ## the gui callbacks
18:  
19: # keyboard focus controls
20: 
21: def on_focus_entrywidget(widget,ignore,entryi,pagei):
22:     from timesheet import entriescon
23:     if isinstance(pagei,int):
24:         guiview.compbook.set_current_page(pagei)
25:     entriescon.grab_column(entryi)
26: 
27: def on_focus_page(widget,ignore,i):
28:     guiview.entrybox[i].grab_focus()
29:     return 1
30: 
31: def on_focus_summary(widget,ignore):
32:     guiview.entryview.grab_focus()
33:     return 1
34: 
35: #### guicon.py #### python package PyScore.timesheet module gui.controller ####