[Tutor] How to reference a wx.grid.Grid outside the methodinwhich it was created?
Lauren Snyder
lauren at protopc.com
Tue Aug 12 07:40:54 CEST 2008
Will do!
Thanks again,
Lauren :-)
-----Original Message-----
From: tutor-bounces at python.org [mailto:tutor-bounces at python.org] On Behalf
Of Alan Gauld
Sent: Monday, August 11, 2008 4:27 PM
To: tutor at python.org
Subject: Re: [Tutor] How to reference a wx.grid.Grid outside the
methodinwhich it was created?
<lauren at protopc.com> wrote
Currently I am receving this error message:
"NameError: global name 'myGrid' is not defined."
It's an error against this statement in method #2:
myGrid.SetCellValue(i, 0, myValue)
As a general rule when posting to the list include the full
error trace not just a summary. The tracelback often has
useful info.
In this case it wasn't needed however. :-)
Alan G.
_______________________________________________
Tutor maillist - Tutor at python.org
http://mail.python.org/mailman/listinfo/tutor
More information about the Tutor
mailing list