01:
02:
03:
04:
05:
06:
07:
08:
09: reloadables=[]
10:
11:
12:
13: import gtk
14: from timesheet import guiview
15:
16:
17:
18: box=guiview.entrybox[2]
19:
20: listview=[guiview.compview[i] for i in [0,1]]
21: renderer=[None]*2
22: column=[None]*2
23: for (i,name,xalign) in [
24: (0,"Finish Condition",0.5),
25: (1,"Finish Time",0.5),
26: ]:
27: listview[i]=guiview.compview[2+i]
28: renderer[i]=gtk.CellRendererText()
29: renderer[i].set_property("xalign",xalign)
30: column[i]=gtk.TreeViewColumn(name,renderer[i],text=0)
31: column[i].set_resizable(False)
32: listview[i].append_column(column[i])
33:
34: toggle=guiview.compcheckbuttontoggle
35:
36:
PyScore
A badly written regatta scoring programme in Python and PyGtk.
register
relational
standing
tabulate
timesheet
treemodel
utility
Copyright 2004, M.E.J.Draisey
This file is part of pyscore.
pyscore is free software; you can redistribute it and/or modify it under
the terms of the GNU General
Public License as published by the Free
Software Foundation; either version 2 of the License, or (at your option)
any later version.
pyscore is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with pyscore; if not, write to the Free Software Foundation, Inc.,
59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
Formatted with
GNU source-highlight:
http:// www.gnu.org/ software/ src-highlite