canceling and joining threads

2005-12-19 Thread sir_alex
Hello everybody! I have a couple of questions about threads: the first is, is there the possibility to cancel a thread while it is executing (like the C function thread_cancel), for implementing something like an "abort" button? And the second is, i have a GUI in which there's a button that launche

Re: canceling and joining threads

2005-12-19 Thread sir_alex
1) no, i didn't; i'll go and read that function 2) well, the actual situation is: there's the main thread (the application itself) and then the second thread that i create with threading.Thread, in which i make some things; in this thread i call gtk.gdk to update a window with a progress bar... 3)

Running external programs: what is the best way?

2006-01-02 Thread sir_alex
If i have to execute an external program (for example, in the frontend that i created for convert, from ImageMagick) i have 2 possibilities: i can call one function between the exec* family, or i can call the system function: so, which in your opinion is the best? The only difference that i know (b

Space left on device

2006-01-16 Thread sir_alex
Is there any function to see how much space is left on a device (such as a usb key)? I'm trying to fill in an mp3 reader in a little script, and this information could be very useful! Thanks! -- http://mail.python.org/mailman/listinfo/python-list

Space left on device

2006-01-16 Thread sir_alex
Is there any function to see how much space is left on a device (such as a usb key)? I'm trying to fill in an mp3 reader in a little script, and this information could be very useful! Thanks! -- http://mail.python.org/mailman/listinfo/python-list

Fromatting an xml file

2006-02-02 Thread sir_alex
Hi! I have a little problem writing xml files formatted in a way like the following: bla bla Every new node element should have a tabulation before it, but when I use xml.dom.minidom I use writexml, which considers as a new node also the text (in my little example, "bla" phras