c1rcle opened this issue on Sep 12, 2002 ยท 10 posts
jcarp posted Sat, 14 September 2002 at 2:19 PM
OK, now I'm curious about focus control and disappearing windows in Poser Python and the idea that grabs might be the solution to something. What are the problems you're seeing?
I don't have ProPack (I'm waiting for P5 on OS X and hoping I'm not to be looking up admiringly at the flocks of pigs flying south over the skating rink in Hell when it arrives), so I apologize in advance if what I have to say is irrelevant to the real problem.
Do scripts launch windows that disappear behind the Poser window (which takes the whole display, naturally) once they lose focus? Do they have focus on launch?
If that's the case, I have a clue about why it happens, which I'll spare you. However, you might try these possible solutions:
For focus on launch of window w, use w.focus_force() in your script.
To keep the window on top, bind its FocusOut event, and in the handler raise the window to the top. Here's the short version. (Square for angle brackets):
w.bind( [FocusOut] , lambda e: w.lift())
Is this anywhere close to relevant?