[wxPython-users] Re: update Choice values at runtime

Patrick K. O'Brien pobrien at orbtech.com
Tue Nov 13 14:42:29 PST 2007


On Nov 13, 2007, at 4:27 PM, Stefan Pampel wrote:

> @Pat:
>>>> import wx
>>>> w = wx.Choice(shell)
> Traceback (most recent call last):
>   File "<stdin>", line 1, in ?
> NameError: name 'shell' is not defined

You have to be in PyCrust or PyShell for that to work.  Or some other  
wxPython environment that has an object that can act as the parent of  
wx.Choice and will allow you to create such a widget at runtime and  
mess with it...  ;-)

-- 
Patrick K. O'Brien
Orbtech    http://www.orbtech.com
Schevo     http://www.schevo.org






More information about the wxpython-users mailing list