wxpython and telnet newbie

Peter Hansen peter at engcorp.com
Tue Nov 25 11:59:05 EST 2003


ataraxia2500 wrote:
> 
> I found that little howto on the wxpython wiki: http://wiki.wxpython.org
> index.cgi/WxHowtoSmallTelnetClient
> I copied the whole thing and past it as is then I tried to run it but I got
> an error.
> this is the error message I got:
> 
> /usr/share/themes/Geramik/gtk-2.0/gtkrc:25: error: unexpected identifier
> `GtkButton', expected character `}'
> Traceback (most recent call last):
>   File "wxtelnet.py", line 70, in ?
>     frame = TelnetFrame(None, -1, sys.argv[1])
> IndexError: list index out of range
> 
> maybe I should modify some lines, I'm not sure.


sys.argv is a list containing arguments passed on the command line.

The above error is basically telling you that you have to specify
at least one command line argument: probably a host name, though
you should probably look at the definition of the TelnetFrame class
to be sure.

If you see a sys.argv[2] somewhere, that means you need a second
argument, etc.

-Peter




More information about the Python-list mailing list