wxpython and telnet newbie

A

ataraxia2500

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.

thanx in advance
 
P

Peter Hansen

ataraxia2500 said:
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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
474,171
Messages
2,570,936
Members
47,472
Latest member
KarissaBor

Latest Threads

Top