What module to use to get a file from a website?
I'm sure this is builtin, I just don't know what module. Thank you for any help! Billt -- http://mail.python.org/mailman/listinfo/python-list
Re: What module to use to get a file from a website?
Thanks! -- http://mail.python.org/mailman/listinfo/python-list
TKinter
I want to create the window and contents in a class, and then use a separate function to write text to the buttons. Then when it clicks a button, I want it to call a check() function to see if that was the right button and then write some new stuff to the buttons. So far it displays the window all right, but it doesn't write the text I want it to. I am calling Tk().mainloop() inside the class; is that the problem? Thanks! B -- http://mail.python.org/mailman/listinfo/python-list
Threading - will threads run in parallel?
I have 2 threads that I want to run at the same time: for instance: from threading import Thread class test(Thread): def run(self): while True: get(asdf) class test2(Thread): def run(self): while True: get(jkl) ack=test() jkl=test2() ack.start() jkl.start() (get() is a function which waits for a ping on a specific port, thus stopping the program for a while.) Will these run together, or do I have to find some other way of running in parallel? Also, is it possible to split off a program for the terminal that started it? As in I type in python test.py and test.py runs in the background and lets me do other things in that terminal? -- http://mail.python.org/mailman/listinfo/python-list
Re: Threading - will threads run in parallel?
Thanks! The problem is on Windows: when I run c:\python24\myprogram.py, it has a command window open up. If I close it, the program ends. So I want it to run without opening that window. -- http://mail.python.org/mailman/listinfo/python-list
Windows getting local ip address
On Linux, it is a simple matter to get the local ip address with system.os("ifconfig >> /tmp/ip"); ip=open("/tmp/ip").readlines(), etc. How can I do this with Windows? -- http://mail.python.org/mailman/listinfo/python-list