Path: csiph.com!v102.xanadu-bbs.net!xanadu-bbs.net!feeder.erje.net!eu.feeder.erje.net!newsfeed.xs4all.nl!newsfeed1.news.xs4all.nl!xs4all!newsgate.cistron.nl!newsgate.news.xs4all.nl!post.news.xs4all.nl!not-for-mail Return-Path: X-Original-To: python-list@python.org Delivered-To: python-list@mail.python.org X-Spam-Status: OK 0.011 X-Spam-Evidence: '*H*': 0.98; '*S*': 0.00; 'subject:code': 0.07; 'subject:while': 0.09; 'cc:addr:python-list': 0.11; 'windows': 0.15; 'from:addr:rosuav': 0.16; 'from:name:chris angelico': 0.16; "linux's": 0.16; 'subject:GUI': 0.16; 'wxpython': 0.16; 'subject:python': 0.16; 'prevent': 0.16; 'sat,': 0.16; 'do,': 0.16; 'wrote:': 0.18; 'trying': 0.19; 'seems': 0.21; 'aug': 0.22; 'cc:addr:python.org': 0.22; 'cc:2**0': 0.24; 'equivalent': 0.26; 'asking': 0.27; 'header:In-Reply-To:1': 0.27; 'am,': 0.29; 'message-id:@mail.gmail.com': 0.30; 'asked': 0.31; 'but': 0.35; 'received:google.com': 0.35; 'there': 0.35; 'subject:one': 0.36; 'window': 0.38; 'bad': 0.39; 'more': 0.64; 'forums': 0.68; 'subject:Keep': 0.84; 'visually': 0.84; 'to:none': 0.92; 'directly.': 0.95 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:cc :content-type; bh=U15q2UBiHJjW1bLDHX+DwNT9YZyjc+cEPntwrRksKRM=; b=dSyFXbV44rrElXXkJk1FoOYFwkV2UHKKUifmYeEyIDU+DsSbO/VvLLyneIoSZxkm+l o/VUN8oCV0/brSKFMTOYUcM7oOLo5RzdOlc20CSKDbnaDKKmCAlAUewGdHdsy691YM9u oFjmQvlppOoZ4ks+oi3nfmZdcUssb6UB+F39+11YgVG7LWNpQfoCY2RXYxWhRIShgoXH Bt+YGvKhuCLrwVpZTZfOnB8Qut2ymPY35lxAgieEjkg11UccoNRfK9l/ZTHIzJhNTpor 2d3U9VICh4O8G17+ViO64OT6RfwVxx4tZjF2Vjv/+VjXO32PARViXcvlttaJ1lKEUXku IqUg== MIME-Version: 1.0 X-Received: by 10.51.17.2 with SMTP id ga2mr5925684igd.2.1407508445874; Fri, 08 Aug 2014 07:34:05 -0700 (PDT) In-Reply-To: <7a3b1122-8251-4702-ab61-0eeb767e9f44@googlegroups.com> References: <446aa6dd-ff18-472b-82b8-ba99d59bf112@googlegroups.com> <7a3b1122-8251-4702-ab61-0eeb767e9f44@googlegroups.com> Date: Sat, 9 Aug 2014 00:34:05 +1000 Subject: Re: Keep one GUI always on TOP while python code is running From: Chris Angelico Cc: "python-list@python.org" Content-Type: text/plain; charset=UTF-8 X-BeenThere: python-list@python.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: General discussion list for the Python programming language List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Newsgroups: comp.lang.python Message-ID: Lines: 18 NNTP-Posting-Host: 2001:888:2000:d::a6 X-Trace: 1407508449 news.xs4all.nl 2895 [2001:888:2000:d::a6]:44174 X-Complaints-To: abuse@xs4all.nl Xref: csiph.com comp.lang.python:75889 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. ChrisA