Rocksolid Light

Welcome to novaBBS (click a section below)

mail  files  register  newsreader  groups  login

Message-ID:  

The key elements in human thinking are not numbers but labels of fuzzy sets. -- L. Zadeh


devel / comp.lang.python / Re: Set tkinter top-level window to "always on visible workspace"

SubjectAuthor
o Re: Set tkinter top-level window to "always on visible workspace"Chris Angelico

1
Re: Set tkinter top-level window to "always on visible workspace"

<mailman.385.1648505164.2329.python-list@python.org>

  copy mid

https://www.novabbs.com/devel/article-flat.php?id=17627&group=comp.lang.python#17627

  copy link   Newsgroups: comp.lang.python
Path: i2pn2.org!rocksolid2!i2pn.org!news.swapon.de!fu-berlin.de!uni-berlin.de!not-for-mail
From: ros...@gmail.com (Chris Angelico)
Newsgroups: comp.lang.python
Subject: Re: Set tkinter top-level window to "always on visible workspace"
Date: Tue, 29 Mar 2022 09:05:51 +1100
Lines: 33
Message-ID: <mailman.385.1648505164.2329.python-list@python.org>
References: <CAPTjJmpAtEMFs-ZwN7d4JsYjp1XFvf7WkDP4aD23JGebMm7V0w@mail.gmail.com>
<YkIwjPw7d4d0hXvm@cskk.homeip.net>
<CAPTjJmokzyen8qGwMJW1+Myu7awOo4AoH9fBciC3LC12SHV0hg@mail.gmail.com>
Mime-Version: 1.0
Content-Type: text/plain; charset="UTF-8"
X-Trace: news.uni-berlin.de mA75yS9D9Kmh6YJYwKTn0wNCpvcZSimJ6B//T5FYQNKQ==
Return-Path: <rosuav@gmail.com>
X-Original-To: python-list@python.org
Delivered-To: python-list@mail.python.org
Authentication-Results: mail.python.org; dkim=pass
reason="2048-bit key; unprotected key"
header.d=gmail.com header.i=@gmail.com header.b=aQJAz7jK;
dkim-adsp=pass; dkim-atps=neutral
X-Spam-Status: OK 0.001
X-Spam-Evidence: '*H*': 1.00; '*S*': 0.00; '2022': 0.05; 'settings.':
0.05; 'mar': 0.07; 'tkinter': 0.07; 'angelico': 0.09; 'ids': 0.09;
'info,': 0.09; 'parse': 0.09; 'properties': 0.09; 'schrieb': 0.09;
'then.': 0.09; 'browsed': 0.16; 'cameron': 0.16; 'chrisa': 0.16;
'from:addr:rosuav': 0.16; 'from:name:chris angelico': 0.16;
'gollwitzer': 0.16; 'received:209.85.221.54': 0.16; 'received
:mail-wr1-f54.google.com': 0.16; 'reformat': 0.16; 'simpson':
0.16; 'subject:always': 0.16; 'subject:level': 0.16;
'subject:tkinter': 0.16; 'turns': 0.16; 'wrote:': 0.16; 'problem':
0.16; 'code.': 0.17; 'tue,': 0.19; 'to:addr:python-list': 0.20;
'returns': 0.22; 'code': 0.23; 'idea': 0.24; "isn't": 0.27;
'chris': 0.28; 'recently': 0.29; '(as': 0.32; 'christian': 0.32;
'format,': 0.32; 'subject:"': 0.32; 'window': 0.32; 'message-
id:@mail.gmail.com': 0.32; 'but': 0.32; 'there': 0.33; 'mean':
0.34; 'header:In-Reply-To:1': 0.34; 'received:google.com': 0.34;
'usual': 0.35; 'from:addr:gmail.com': 0.35; 'work,': 0.36;
'source': 0.36; 'couple': 0.37; 'really': 0.37; "it's": 0.37;
'received:209.85': 0.37; 'hard': 0.37; 'though': 0.37; 'way':
0.38; 'read': 0.38; 'received:209': 0.39; 'changes': 0.39; 'use':
0.39; 'want': 0.40; 'pass': 0.64; 'your': 0.64; 'now,': 0.67;
'accept': 0.67; 'manager': 0.68; 'see,': 0.76; 'discovered': 0.80;
'figuring': 0.84; 'honour': 0.84; 'id.': 0.84; 'itself.': 0.84
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112;
h=mime-version:references:in-reply-to:from:date:message-id:subject:to;
bh=qnWZKeCo6C5bk2RG0VDRTDV+GWDrrwqtbVaSBPUa00U=;
b=aQJAz7jKVBmZrZ/AK1doZqWZsMG7tJRkGMHcDwfwoAKjhnS9Dy/+sjpwhXC+4WNDUI
B1phm9+m8A0wUdoePkpg4iIIvO7zsmJwcLH4OTY/PnFR7S1VVfqlOlap5olsXPJ1MrFD
lke1FOsikLrLcphfhROT0MMNOuAJ854HIeYt3VXU7fJmTPqh+/ZlcC/Tx6sKBrEpVDDM
CgUeQJp8mCODhEPAesTObhi7tFHtR1xMS6kredHMvhCJob3u9/+mfszxMKQFChsRIEPG
wYW4SZzsRVdwuhD8xAsY4Xdwn/R+1iNAqBLsm5isNpn877JwoIiitT/znzb40TzPHP4e
q93Q==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
d=1e100.net; s=20210112;
h=x-gm-message-state:mime-version:references:in-reply-to:from:date
:message-id:subject:to;
bh=qnWZKeCo6C5bk2RG0VDRTDV+GWDrrwqtbVaSBPUa00U=;
b=71u2IwbGZBIRYXmc0XVPpOB9rFDrxz4zaQ85bMUzSXOugATuPNPM3MwsKKDe3Ys9/P
L/i7GUiPUidUTwF+46sIuve9jIv4jWybGihAU//DmYekhU30pge+eoTyChIKtQehXGCu
3IjThn4GkqiSl4MG033jxgxAgBDMhWw/X2PMR9KVTHGnB1zyI7ax5M2QM328eZXvrEG7
bprVSiPm2Mh2JAq+hu2iy32IX3nJJRFXuT9NywzaWqD4K+FOXdtzuZ9XN4LglE96GJyL
/6eyWZpXITels5sozZvHvAVZ5FXAmwnU0nLgzLz9OUsHeN71Bqzc6KHMqvLPi5xeuONq
bghw==
X-Gm-Message-State: AOAM532MuslJeAffifKwYqtia1zI8GM2midaZiqQAwMh7NIRyiLNAsTH
+yhDyzl9TiESczJbStRCTtNmqHJrAmoEiZlD3uf8+KH6
X-Google-Smtp-Source: ABdhPJwbzZRalt8S0fQpv+MEQRxb2Ot29a7/F6jN4ugfOpAjeS4Wd3X0XXgLO+XCdFm8cm5o5X65l5GRPR3t7o6oUhI=
X-Received: by 2002:a05:6000:188d:b0:205:1242:485a with SMTP id
a13-20020a056000188d00b002051242485amr27564049wri.495.1648505162998; Mon, 28
Mar 2022 15:06:02 -0700 (PDT)
In-Reply-To: <YkIwjPw7d4d0hXvm@cskk.homeip.net>
X-BeenThere: python-list@python.org
X-Mailman-Version: 2.1.39
Precedence: list
List-Id: General discussion list for the Python programming language
<python-list.python.org>
List-Unsubscribe: <https://mail.python.org/mailman/options/python-list>,
<mailto:python-list-request@python.org?subject=unsubscribe>
List-Archive: <https://mail.python.org/pipermail/python-list/>
List-Post: <mailto:python-list@python.org>
List-Help: <mailto:python-list-request@python.org?subject=help>
List-Subscribe: <https://mail.python.org/mailman/listinfo/python-list>,
<mailto:python-list-request@python.org?subject=subscribe>
X-Mailman-Original-Message-ID: <CAPTjJmokzyen8qGwMJW1+Myu7awOo4AoH9fBciC3LC12SHV0hg@mail.gmail.com>
X-Mailman-Original-References: <CAPTjJmpAtEMFs-ZwN7d4JsYjp1XFvf7WkDP4aD23JGebMm7V0w@mail.gmail.com>
<YkIwjPw7d4d0hXvm@cskk.homeip.net>
 by: Chris Angelico - Mon, 28 Mar 2022 22:05 UTC

On Tue, 29 Mar 2022 at 09:04, Cameron Simpson <cs@cskk.id.au> wrote:
>
> On 29Mar2022 06:10, Chris Angelico <rosuav@gmail.com> wrote:
> >On Tue, 29 Mar 2022 at 06:08, Christian Gollwitzer <auriocus@gmx.de> wrote:
> >> Am 28.03.22 um 20:03 schrieb Chris Angelico:
> >> > Would you accept a solution that involves a subprocess call?
> >> >
> >> > wmctrl -ir {id} -b add,sticky
> >> >
> >> > Now, the only problem is... figuring out your window ID. Worst case,
> >> > parse wmctrl -lG to get that info, but it might be possible to get the
> >> > window ID from Tkinter itself.
> >>
> >> Sure: Call "winfo_id()" on the toplevel. You might want to reformat in
> >> it in hex format, which is the usual way to pass these IDs around. Tk
> >> actually returns it in hex format, but Tkinter reformats it as an integer.
> >>
> >
> >Ah sweet, there you go then. (As you can see, I don't use Tkinter
> >much.) I have no idea how wmctrl does its work,
>
> It sets properties on the window itself. A window manager can listen for
> such changes and honour the settings.
>

Yeah but what I mean is, I don't know how to replicate its behaviour.

Though I could, of course, just go read the source code. Sometimes it
turns out that it really isn't that hard to replicate (as I discovered
when I browsed the source code for "tail -F" recently - it's just a
couple of inotify calls, way simpler than I expected).

ChrisA

1
server_pubkey.txt

rocksolid light 0.9.81
clearnet tor