[wxpython-users] Simple scope question
by John Dann other posts by this author
Jul 8 2008 11:50AM messages near this date
Re: [wxpython-users] Writetext from one frame event toanotherframetextctrl.
|
Re: [wxpython-users] Simple scope question
Fairly new to Python and wxP so there's probably something simple
that I haven't grasped yet about assigning the scope of objects:
Problem is as follows:
I've declared a grid object in my Frame's __init__:
def __init__(self)
....
grid = wx.grid.Grid(etc...)
I then want to assign some values to various grid cells from within a
different function but within the same frame class, ie
def otherfunction(self)
grid.SetCellValue(r, c, value)
but I keep getting errors about the grid object being unrecognised whether I do
grid.SetCellValue
or
self.grid.SetCellValue
Is there something obvious that I'm missing?
_______________________________________________
wxpython-users mailing list
wxpython-users@[...].org
http://lists.wxwidgets.org/mailman/listinfo/wxpython-users
Thread:
John Dann
Raffaello
Phil Mayes
Robin Dunn
Raffaello
Robin Dunn
Timothy Grant
Josiah Carlson
Christopher Barker
Raffaello
Kyle W Rickey
|