[Tutor] Stuck with classes
Danny Kohn
danny.kohn@systematik.se
Thu, 4 Oct 2001 19:41:49 +0200
Hi.
Have the following problem that I cannot seem to figure out.
class matrixPanel(wxPanel):
def __init__(self, parent, id):
wxPanel.__init__(self, parent, id, wxDefaultPosition, wxPyDefaultSize)
def makeGrid():
self.GridSizer =3D wxFlexGridSizer( 2, 3, 1, 1 )
[...]
class genGrid:
def __init__(self):
pass
def addGen(self, panel):
# Create Function table
self.DescWin =3D wxGrid(...)
[...]
yyy.AddWindow( ...)
p =3D matrixPanel(frame1, -1)
gr =3D p.makeGrid
gg=3DgenGrid()
[?]
How in earth do I pass self.GridSizer in matrixPanel to yyy? Or do I =
have to do this in a nested class. I have tried that also with =
disappointing results.
Thanks.
Danny Kohn Tel: +46 (708) 140 300 (\_/) ))
ICQ: 1328817 ('.')=3D// Miau!
Ham: SM=D8NBJ ( ~~~ )/ Rrrrrui! =20
`w---w=B4