ASPN ActiveState Programmer Network
ActiveState
/ Home / Perl / PHP / Python / Tcl / XSLT /
/ Safari / My ASPN /
Cookbooks | Documentation | Mailing Lists | Modules | News Feeds | Products | User Groups


Recent Messages
List Archives
About the List
List Leaders
Subscription Options

View Subscriptions
Help

View by Topic
ActiveState
.NET Framework
Open Source
Perl
PHP
Python
Tcl
Web Services
XML & XSLT

View by Category
Database
General
SOAP
System Administration
Tools
User Interfaces
Web Programming
XML Programming


MyASPN >> Mail Archive >> wxpython-users
wxpython-users
[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

Privacy Policy | Email Opt-out | Feedback | Syndication
© 2004 ActiveState, a division of Sophos All rights reserved