Update of /cvsroot/openrpg/openrpg1/orpg/gametree/nodehandlers
In directory sc8-pr-cvs3.sourceforge.net:/tmp/cvs-serv25869/orpg/gametree/nodehandlers
Modified Files:
Tag: BRANCH-1-7-3
d20.py
Log Message:
Applied Patch [ 1705263 ] Make d20 nodes work again
Index: d20.py
===================================================================
RCS file: /cvsroot/openrpg/openrpg1/orpg/gametree/nodehandlers/d20.py,v
retrieving revision 1.28
retrieving revision 1.28.4.1
diff -C2 -d -r1.28 -r1.28.4.1
*** d20.py 15 Nov 2006 12:11:23 -0000 1.28
--- d20.py 9 May 2007 19:39:02 -0000 1.28.4.1
***************
*** 1,2422 ****
! # Copyright (C) 2000-2001 The OpenRPG Project
! #
! # ope...@li...
! #
! # This program 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.
! #
! # This program is distributed in the hope that it will be useful,
[...4815 lines suppressed...]
! for f in f_list:
! opts.append(f.getAttribute('name'))
! dlg = wx.SingleChoiceDialog(self,'Choose Class','Classes',opts)
! if dlg.ShowModal() == wx.ID_OK:
! i = dlg.GetSelection()
! new_node = self.master_dom.appendChild(f_list[i].cloneNode(False))
! self.grid.AppendRows(1)
! self.refresh_row(self.grid.GetNumberRows()-1)
! dlg.Destroy()
!
!
! def on_size(self,event):
! s = self.GetClientSizeTuple()
! self.grid.SetDimensions(0,0,s[0],s[1]-25)
! self.sizer.SetDimension(0,s[1]-25,s[0],25)
! (w,h) = self.grid.GetClientSizeTuple()
! cols = self.grid.GetNumberCols()
! col_w = w/(cols)
! for i in range(0,cols):
! self.grid.SetColSize(i,col_w)
|