tcp functions

2008-03-01 Thread Gif
is there a module for tcp functions or any other quick way to connect, listen, send and recieve from tcp? thanks in advance -- http://mail.python.org/mailman/listinfo/python-list

tcp

2008-03-02 Thread Gif
i have this small script which after some router configurations works. ## #! /usr/bin/python import socket HOST = '' PORT = 1515 s = socket.socket(socket.AF_INET, socket.SOCK_STREAM) s.bind((HOST, PORT)) s.listen(1) conn, addr = s.accept()

Re: tcp

2008-03-02 Thread Gif
you could at least check before posting. as i said i've tried like 1000 ways of doing that, and im so desparate that i'm thinking of quiting python. This damn thing just doesnt work. when i do as you post the server never even replies, as it tends to accept connections all the time. anyone has a b

Re: tcp

2008-03-02 Thread Gif
sorry for acting like a fool but this is just to weirdly easy that i can't get to work. i've written a small web server in another language and this is more like copying code. i already have everything figured out, except this one but noone seems either willing or capable of helping me. again sorry

Re: tcp

2008-03-02 Thread Gif
i would like to apologize once more. i understand that you are saying "what a fool he is waiting for us to solve all his problems", cause i've said that for other posts, when they seemed "immature". It's just that i couldn't find a way out of 20 lines of code and this drove me mad. i end this topi

Re: tcp

2008-03-02 Thread Gif
thanks everybody, i've got this to work. i'm not trying to write an actual web server, i'm just using it for some procedures like URL rewriting. -- http://mail.python.org/mailman/listinfo/python-list

execute

2008-03-09 Thread Gif
i'm trying to execute a file without replacing the current process, but after searching the help file, documentations and the web, i can't a way of doing that. os.exec*() will close the current program. ps: by executing i mean like typing "mspaint" in run dialog.. it's not a python file -- http:

Re: execute

2008-03-09 Thread Gif
i know os.popen() but i want to execute a file with args -- http://mail.python.org/mailman/listinfo/python-list

Re: execute

2008-03-09 Thread Gif
ok i found a workaround. -- http://mail.python.org/mailman/listinfo/python-list

wxPython listctrl

2008-03-29 Thread Gif
I was wondering if there is a way to extract an icon from a file (executable) and then add it in a listctrl. I also 'd like to know if i can shorten the icon in order to fit in a listctrl item. I've managed to get the icon from an icon file and add t as a listctrl item but it remains 32x32. code:

Re: wxPython listctrl

2008-03-31 Thread Gif
thanks Mike, i'll post there. -- http://mail.python.org/mailman/listinfo/python-list