X-Received: by 10.42.212.207 with SMTP id gt15mr383409icb.31.1407509147183; Fri, 08 Aug 2014 07:45:47 -0700 (PDT) X-Received: by 10.50.97.74 with SMTP id dy10mr103788igb.1.1407509147093; Fri, 08 Aug 2014 07:45:47 -0700 (PDT) Path: csiph.com!v102.xanadu-bbs.net!xanadu-bbs.net!news.glorb.com!h18no10236586igc.0!news-out.google.com!px9ni588igc.0!nntp.google.com!h18no16226217igc.0!postnews.google.com!glegroupsg2000goo.googlegroups.com!not-for-mail Newsgroups: comp.lang.python Date: Fri, 8 Aug 2014 07:45:46 -0700 (PDT) In-Reply-To: Complaints-To: groups-abuse@google.com Injection-Info: glegroupsg2000goo.googlegroups.com; posting-host=59.95.32.237; posting-account=mBpa7woAAAAGLEWUUKpmbxm-Quu5D8ui NNTP-Posting-Host: 59.95.32.237 References: <446aa6dd-ff18-472b-82b8-ba99d59bf112@googlegroups.com> <7a3b1122-8251-4702-ab61-0eeb767e9f44@googlegroups.com> User-Agent: G2/1.0 MIME-Version: 1.0 Message-ID: <1d7d60c5-e63e-496b-83ef-07843cf9732d@googlegroups.com> Subject: Re: Keep one GUI always on TOP while python code is running From: Rustom Mody Injection-Date: Fri, 08 Aug 2014 14:45:47 +0000 Content-Type: text/plain; charset=ISO-8859-1 Xref: csiph.com comp.lang.python:75891 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 are just setting the "always on top" flag, > which wxpython can do directly. It may be unobvious, as there seem to > be a lot of questions asked about it (lots of StackOverflow and forums > posts), but ultimately, there's a wx.STAY_ON_TOP flag that will do the > same thing. > > > > However, the OP wasn't asking about visually keeping a window on top, > which is pretty easy. Trying to actually prevent access to any other > window is significantly harder to do, plus it's never going to be more > broad than one X session, plus it's almost always a bad UI idea. > This is the OP: > 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. [I am of course assuming that 'did' means 'done' and 'GUI' means 'window' or 'widget'] I dont see anything about preventing access.