[Tutor] How to reference a wx.grid.Grid outside the method inwhich it was created?
lauren at protopc.com
lauren at protopc.com
Mon Aug 11 20:07:41 CEST 2008
It worked like a charm!
Thank you so much!!
Lauren
> If method1 and method2 are both methods of the same class, just save
> myGrid as an attribute of the class rather than having it as a local
> variable in method1. I.e.
>
> def method1(self):
> self.myGrid = ...
>
> def method2(self):
> self.myGrid.SetCellValue(...)
>
> Kent
>
More information about the Tutor
mailing list