Re: [Tutor] How to deal with a thread that doesn't terminate

2008-02-19 Thread Michael Langford
Instead of using a thread, you could see if you could use a second process. For instance, the following would work on windows (and is killable). import subprocess import win32api class SpawnController(object): def __init__(self,cmd): self.cmdline = cmd def start(self): se

Re: [Tutor] Putting the Output of Help to a File

2008-02-19 Thread Justin Ezequiel
> From: Wayne Watson <[EMAIL PROTECTED]> > > See Subject. Is it possible? > python -m pydoc sys > sys.txt more < sys.txt ___ Tutor maillist - Tutor@python.org http://mail.python.org/mailman/listinfo/tutor

Re: [Tutor] How to deal with a thread that doesn't terminate

2008-02-19 Thread John Fouhy
On 20/02/2008, bob gailer <[EMAIL PROTECTED]> wrote: > Tony Cappellini wrote: > > On Feb 19, 2008 2:02 PM, bob gailer <[EMAIL PROTECTED]> wrote: > > > >> Tony Cappellini wrote: > >> > >>> When I executing a program external to the main program in a thread, > >>> and that thread hangs, can the threa

Re: [Tutor] How to deal with a thread that doesn't terminate

2008-02-19 Thread bob gailer
Tony Cappellini wrote: > On Feb 19, 2008 2:02 PM, bob gailer <[EMAIL PROTECTED]> wrote: > >> Tony Cappellini wrote: >> >>> When I executing a program external to the main program in a thread, >>> and that thread hangs, can the thread be terminated? >>> >>> >> Please define "hangs". >

Re: [Tutor] How to deal with a thread that doesn't terminate

2008-02-19 Thread bob gailer
Tony Cappellini wrote: > When I executing a program external to the main program in a thread, > and that thread hangs, can the thread be terminated? > Please define "hangs". AFAIK that could mean waiting on an external event / signal / communication that never happens, or running in an "infini

Re: [Tutor] How to deal with a thread that doesn't terminate

2008-02-19 Thread Tony Cappellini
On Feb 19, 2008 2:02 PM, bob gailer <[EMAIL PROTECTED]> wrote: > Tony Cappellini wrote: > > When I executing a program external to the main program in a thread, > > and that thread hangs, can the thread be terminated? > > > Please define "hangs". > AFAIK that could mean waiting on an external even

[Tutor] How to deal with a thread that doesn't terminate

2008-02-19 Thread Tony Cappellini
When I executing a program external to the main program in a thread, and that thread hangs, can the thread be terminated? How does one handle this situation? ___ Tutor maillist - Tutor@python.org http://mail.python.org/mailman/listinfo/tutor

Re: [Tutor] Change mouse cursor position

2008-02-19 Thread Michael Langford
I do not know of a python library to do this. Therefore, I'd use a popen call to http://www.hoopajoo.net/projects/xautomation.html. --Michael PS: If we you were on windows, I'd use http://pywinauto.openqa.org/ On Feb 19, 2008 4:34 AM, Flaper87 <[EMAIL PROTECTED]> wrote: > Hey Guys!!!

Re: [Tutor] Change mouse cursor position

2008-02-19 Thread bob gailer
Flaper87 wrote: > it is not a GUI application, i need to be able to change the cursor > position if an event happens. Sorry but that does not help at all. I guess you want a character-based console window and ability to respond to user keystrokes. If that is the case use the curses module. If n

Re: [Tutor] Change mouse cursor position

2008-02-19 Thread Flaper87
it is not a GUI application, i need to be able to change the cursor position if an event happens. 2008/2/19, bob gailer <[EMAIL PROTECTED]>: > > Flaper87 wrote: > > Hey Guys!!! > > > > is it possible to change the mouse position by passing it the coords? > > > > I'm developing an application that

Re: [Tutor] Change mouse cursor position

2008-02-19 Thread bob gailer
Flaper87 wrote: > Hey Guys!!! > > is it possible to change the mouse position by passing it the coords? > > I'm developing an application that needs to be able to change the > cursor's possition. We need more information. Is this a GUI application? If so which GUI software? Or are you trying to c

Re: [Tutor] reading webpage

2008-02-19 Thread Kent Johnson
Guess?!? wrote: > Hi Kent, > > Broken machine gives > > IDLE 1.2.1 > >>> import urllib > >>> print urllib.getproxies() > {'http': 'http://proxy-address:port' } > >>> > > correct machine gives empty dictionary ... { } Well that is the problem. Now you have

[Tutor] Change mouse cursor position

2008-02-19 Thread Flaper87
Hey Guys!!! is it possible to change the mouse position by passing it the coords? I'm developing an application that needs to be able to change the cursor's possition. O.S. Linux Debian Sid Python: 2.4=< Thanks -- Flavio Percoco Premoli, A.K.A. [Flaper87] http://www.flaper87.org Usuario Linux