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[3]
19:
20: listview=[guiview.compview[v] for v in [4,5,6]]
21: renderer=[None]*4
22: column=[None]*4
23: fromcolumn={}
24: for (col,name,xalign) in [
25: (0,"Class and Division",1.0),
26: (1,"Fleet or Casual Configuration",0.0),
27: ]:
28: renderer[col]=gtk.CellRendererText()
29: renderer[col].set_property("xalign",xalign)
30: column[col]=gtk.TreeViewColumn(name,renderer[col],text=col,strikethrough=3)
31: column[col].set_resizable(False)
32: fromcolumn[column[col]]=(col,renderer[col])
33: listview[0].append_column(column[col])
34: renderer[2]=gtk.CellRendererText()
35: renderer[2].set_property("xalign",0.5)
36: column[2]=gtk.TreeViewColumn(
37: "Registration",renderer[2],text=0,style=1,strikethrough=2
38: )
39: column[2].set_resizable(False)
40: listview[1].append_column(column[2])
41: renderer[3]=gtk.CellRendererText()
42: renderer[3].set_property("xalign",1.0)
43: column[3]=gtk.TreeViewColumn("Effective Rating",renderer[3],text=0,style=1)
44: column[3].set_resizable(False)
45: listview[2].append_column(column[3])
46:
47:
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