IpAddrCtrl.SetValue() problems

Peter L Hansen peter at engcorp.com
Fri Oct 8 16:31:55 CEST 2004


rob wrote:
> I'm relatively new to python so bear with me. I have run into a
> problem with IPAddrCtrl and can't seem to find any info on google etc.

IPAddrCtrl is part of wxPython.  wxPython has its own mailing list,
where you will generally get more, better, or faster responses
than if you ask here.

> ERROR:
> Traceback (most recent call last):
>   File "mydlg.pyo", line 787, in IPAddrDialog
>   File "mydlg.pyo", line 240, in __init__
>   File "wx\lib\masked\ipaddrctrl.pyo", line 148, in SetValue
> NameError: global name 'types' is not defined

"types" is a module in the Python standard library.  Looking
at the source for ipaddrctrl, in \python23\lib\site-packages\
wx\lib\masked\ipaddrctrl.py, you can see that line 148
tries to use items from that module, but the module has
never been imported!

This is a bug in wxPython.  Please report it in the bug tracker at 
http://sourceforge.net/tracker/?group_id=9863&atid=109863 .

-Peter



More information about the Python-list mailing list