Re: Keep one GUI always on TOP while python code is running

2014-08-11 Thread Grant Edwards
On 2014-08-08, Chris Angelico wrote: > On Fri, Aug 8, 2014 at 11:58 PM, Steven D'Aprano > Why should that disable access to everything else? Most full screen > games let you alt-tab away from them (preferably auto-pausing the > game). If a game goes system modal on me, I would not be happy. > >>

Re: Keep one GUI always on TOP while python code is running

2014-08-11 Thread Grant Edwards
On 2014-08-07, Jaydeep Patil wrote: > I have one query. I have did some programming which copies and paste > data using system clipboard. I need to keep one GUI always on top > till my python code is running. If you mean keep it on top while it is running, the answer is probably yes, but how to

Re: Keep one GUI always on TOP while python code is running

2014-08-08 Thread Chris Angelico
On Sat, Aug 9, 2014 at 4:04 AM, Steven D'Aprano wrote: > Chris Angelico wrote: > >> On Fri, Aug 8, 2014 at 11:58 PM, Steven D'Aprano >> wrote: >>> Chris Angelico wrote: >>> Yeah; like I said, "Don't" is the short answer. There will be exceptions, some extremely rare situations when syst

Re: Keep one GUI always on TOP while python code is running

2014-08-08 Thread Steven D'Aprano
Chris Angelico wrote: > On Fri, Aug 8, 2014 at 11:58 PM, Steven D'Aprano > wrote: >> Chris Angelico wrote: >> >>> Yeah; like I said, "Don't" is the short answer. There will be >>> exceptions, some extremely rare situations when system modality is >>> correct; but fundamentally, it's impossible to

Re: Keep one GUI always on TOP while python code is running

2014-08-08 Thread Chris Angelico
On Sat, Aug 9, 2014 at 12:58 AM, Rustom Mody wrote: > Now I seem to remember this same questioner (??) asking a few months ago > about: > > I have an excel program running for 20 minutes and I want to lock > the machine or something like that > > And you proscribing similarly then :-) > > Yeah 'On

Re: Keep one GUI always on TOP while python code is running

2014-08-08 Thread Chris Angelico
On Sat, Aug 9, 2014 at 12:45 AM, Rustom Mody wrote: > I dont see anything about preventing access. That came from his next post, in which he said "So that user cant do any other operation.". That's the preventing access bit. Of course, if "Always On Top" is sufficient, then it's (a) easy, even

Re: Keep one GUI always on TOP while python code is running

2014-08-08 Thread Chris Angelico
On Sat, Aug 9, 2014 at 12:50 AM, alister wrote: > On Fri, 08 Aug 2014 23:58:56 +1000, Steven D'Aprano wrote: >> >>> (for instance, on all my Linux systems, I can hit Ctrl-Alt-F1 to switch >>> away from the GUI altogether). >> >> Does that work when xscreensaver or equivalent has locked the system?

Re: Keep one GUI always on TOP while python code is running

2014-08-08 Thread Rustom Mody
On Friday, August 8, 2014 8:22:47 PM UTC+5:30, Chris Angelico wrote: > On Sat, Aug 9, 2014 at 12:45 AM, Rustom Mody wrote: > > I dont see anything about preventing access. > > > That came from his next post, in which he said "So that user cant do > any other operation.". > That's the preventing a

Re: Keep one GUI always on TOP while python code is running

2014-08-08 Thread alister
On Fri, 08 Aug 2014 23:58:56 +1000, Steven D'Aprano wrote: > >> (for instance, on all my Linux systems, I can hit Ctrl-Alt-F1 to switch >> away from the GUI altogether). > > Does that work when xscreensaver or equivalent has locked the system? If > so, > that's a security vulnerability. I have n

Re: Keep one GUI always on TOP while python code is running

2014-08-08 Thread Rustom Mody
On Friday, August 8, 2014 8:04:05 PM UTC+5:30, Chris Angelico wrote: > On Sat, Aug 9, 2014 at 12:23 AM, Rustom Mody wrote: > > A windows equivalent for linux's wmctrl seems to be nir > > http://www.nirsoft.net/utils/nircmd2.html#using > > > > Search for 'settopmost' > > > No need; both of those

Re: Keep one GUI always on TOP while python code is running

2014-08-08 Thread Chris Angelico
On Sat, Aug 9, 2014 at 12:23 AM, Rustom Mody wrote: > A windows equivalent for linux's wmctrl seems to be nir > http://www.nirsoft.net/utils/nircmd2.html#using > > Search for 'settopmost' No need; both of those are just setting the "always on top" flag, which wxpython can do directly. It may be u

Re: Keep one GUI always on TOP while python code is running

2014-08-08 Thread Rustom Mody
On Friday, August 8, 2014 7:21:35 PM UTC+5:30, Chris Angelico wrote: > On Fri, Aug 8, 2014 at 11:44 PM, Rustom Mody wrote: > > On Thursday, August 7, 2014 4:54:09 PM UTC+5:30, Jaydeep Patil wrote: > >> Hi all, > > > >> I have one query. I have did some programming which copies and paste data > >>

Re: Keep one GUI always on TOP while python code is running

2014-08-08 Thread Chris Angelico
On Fri, Aug 8, 2014 at 11:58 PM, Steven D'Aprano wrote: > Chris Angelico wrote: > >> Yeah; like I said, "Don't" is the short answer. There will be >> exceptions, some extremely rare situations when system modality is >> correct; but fundamentally, it's impossible to use GUI software to >> control

Re: Keep one GUI always on TOP while python code is running

2014-08-08 Thread Marko Rauhamaa
Steven D'Aprano : > Does that work when xscreensaver or equivalent has locked the system? > If so, that's a security vulnerability. Depends on the semantics of the screensaver. Its scope is the current X11 session. In my home, different family members have different VTs. Locking one VT shouldn't

Re: Keep one GUI always on TOP while python code is running

2014-08-08 Thread Steven D'Aprano
Chris Angelico wrote: > On Fri, Aug 8, 2014 at 6:57 PM, Paul Rudin > wrote: >> Chris Angelico writes: >> >>> On Fri, Aug 8, 2014 at 3:57 PM, Jaydeep Patil >>> wrote: I mean to say, One GUI should be always on top from start to end of code running. So that user cant do any other operat

Re: Keep one GUI always on TOP while python code is running

2014-08-08 Thread Chris Angelico
On Fri, Aug 8, 2014 at 11:44 PM, Rustom Mody wrote: > On Thursday, August 7, 2014 4:54:09 PM UTC+5:30, Jaydeep Patil wrote: >> Hi all, > >> I have one query. I have did some programming which copies and paste data >> using system clipboard. I need to keep one GUI always on top till my python >>

Re: Keep one GUI always on TOP while python code is running

2014-08-08 Thread Rustom Mody
On Thursday, August 7, 2014 4:54:09 PM UTC+5:30, Jaydeep Patil wrote: > Hi all, > I have one query. I have did some programming which copies and paste data > using system clipboard. I need to keep one GUI always on top till my python > code is running. In linux you can do (at shell level) $ wmc

Re: Keep one GUI always on TOP while python code is running

2014-08-08 Thread Chris Angelico
On Fri, Aug 8, 2014 at 6:57 PM, Paul Rudin wrote: > Chris Angelico writes: > >> On Fri, Aug 8, 2014 at 3:57 PM, Jaydeep Patil >> wrote: >>> I mean to say, One GUI should be always on top from start to end of code >>> running. >>> So that user cant do any other operation. >>> I am using wxpytho

Re: Keep one GUI always on TOP while python code is running

2014-08-08 Thread Paul Rudin
Chris Angelico writes: > On Fri, Aug 8, 2014 at 3:57 PM, Jaydeep Patil wrote: >> I mean to say, One GUI should be always on top from start to end of code >> running. >> So that user cant do any other operation. >> I am using wxpython > > Ah, that would be called "System Modal", and should be re

Re: Keep one GUI always on TOP while python code is running

2014-08-07 Thread Chris Angelico
On Fri, Aug 8, 2014 at 3:57 PM, Jaydeep Patil wrote: > I mean to say, One GUI should be always on top from start to end of code > running. > So that user cant do any other operation. > I am using wxpython Ah, that would be called "System Modal", and should be reserved for absolutely critical sys

Re: Keep one GUI always on TOP while python code is running

2014-08-07 Thread Jaydeep Patil
Chris, I mean to say, One GUI should be always on top from start to end of code running. So that user cant do any other operation. I am using wxpython Regards Jay -- https://mail.python.org/mailman/listinfo/python-list

Re: Keep one GUI always on TOP while python code is running

2014-08-07 Thread Chris Angelico
On Thu, Aug 7, 2014 at 9:24 PM, Jaydeep Patil wrote: > I have one query. I have did some programming which copies and paste data > using system clipboard. I need to keep one GUI always on top till my python > code is running. > "till" or "while"? If you mean "while", then yes. But it depends o