Re: [PyMOL] How to raw_input() from windows Pymol?

2005-10-18 Thread evangelos papadopoulos
Warren, Thank you for the prompt answer. Defining the function/script as you said in a way that I pass arguments through the calling command should work. Although there could be other nicer ways. I intend to use it in order to input a filename with constrain data that the user wants to open. I

Re: [PyMOL] How to raw_input() from windows Pymol?

2005-10-17 Thread Ezequiel H Panepucci
Evangelos, Maybe you could write a wizard instead of a script, look at C:\..\pymol\modules\pymol\wizard\renaming.py Zac evangelos papadopoulos wrote: Hello all, I am using the windows binaries for PyMol. Whereas in Python it is easy to do a: a=raw_input() When I use PyMol under windo

RE: [PyMOL] How to raw_input() from windows Pymol?

2005-10-17 Thread Warren DeLano
Evangelos, This is architecturally impossible in PyMOL due to clash between the asychronous nature of GUI event handling and the synchronous nature of script execution using the main thread. Right now, the best thing you can do is add a new command into the language which calls your function foll