Rocksolid Light

Welcome to RetroBBS

mail  files  register  newsreader  groups  login

Message-ID:  

Mathematicians practice absolute freedom. -- Henry Adams


devel / comp.lang.python / Re: Problem resizing a window and button placement

SubjectAuthor
o Re: Problem resizing a window and button placementMRAB

1
Re: Problem resizing a window and button placement

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

  copy mid

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

  copy link   Newsgroups: comp.lang.python
Path: i2pn2.org!i2pn.org!news.swapon.de!fu-berlin.de!uni-berlin.de!not-for-mail
From: python@mrabarnett.plus.com (MRAB)
Newsgroups: comp.lang.python
Subject: Re: Problem resizing a window and button placement
Date: Sat, 24 Feb 2024 02:26:43 +0000
Lines: 29
Message-ID: <mailman.1.1708741611.3452.python-list@python.org>
References: <06a301da66be$bfdc0da0$3f9428e0$@SGA.Ninja>
<76894f6f-551c-470a-93c7-b229c28f8b58@mrabarnett.plus.com>
Mime-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 7bit
X-Trace: news.uni-berlin.de 0ohyJ7r2gg1OoRld6I4u8AdPhh/Nx08T4k+Oj3fyiPGg==
Cancel-Lock: sha1:UbcYdayeN/2ol3djFQHRb9HtE70= sha256:GlP0cEhKwy4gyDlziYTnB/4DSZep7DDIMvgKEaWW/hg=
Return-Path: <python@mrabarnett.plus.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=plus.com header.i=@plus.com header.b=EqcpHO+M;
dkim-adsp=none (unprotected policy); dkim-atps=neutral
X-Spam-Status: OK 0.058
X-Spam-Evidence: '*H*': 0.89; '*S*': 0.00; 'from:addr:python': 0.09;
'received:192.168.1.64': 0.09; "'':": 0.16; 'buttons': 0.16;
'from:addr:mrabarnett.plus.com': 0.16; 'from:name:mrab': 0.16;
'locate': 0.16; 'message-id:@mrabarnett.plus.com': 0.16;
'received:plus.net': 0.16; 'wrote:': 0.16; 'to:addr:python-list':
0.20; 'python,': 0.25; 'header:User-Agent:1': 0.30; 'python-list':
0.32; 'window': 0.32; 'received:192.168.1': 0.32; 'header:In-
Reply-To:1': 0.34; 'change': 0.36; 'received:192.168': 0.37;
'handle': 0.39; 'use': 0.39; 'steve': 0.39; 'want': 0.40; 'event':
0.40; 'skip:o 10': 0.61; 'received:212': 0.62; 'right': 0.68;
'bind': 0.84; 'border': 0.91; 'placing': 0.91
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=plus.com; s=042019;
t=1708741603; bh=7TwHEsWs1OicF8cXwP9KkE2v9ylGNBTBSS4PfixCHZY=;
h=Date:Subject:To:References:From:In-Reply-To;
b=EqcpHO+Mk9J0+Q93l4DvwuMAOAYPW3P7ElSmuKNYcPX/FI1/IcTSrulM83qmX3+2e
4VpcEqzQWA2nKEmgXmYqVQrvb4hfyO+cDUNCRriptGKHLvbwdGxGQio2mW/GhPG50x
qbUOyEupkIPffeLxbJhQyPFiKORWR/X2SXkco3Y4Ga1bvD0xpZ5HMwbPWLDKK3SpYI
/Fi1xU2+ivQSHBCyEPDqEQ5N5ohcnEfzFYvYGNNncFuX1lAO05a+L/63A7uslpx/x3
DhFDUuFn9N8JZk2XaMLSsATzJXrn80WS9GoJozauCKlOqwaZyGHgdgLdu58uS25SpO
H01UGQJlXymog==
X-Clacks-Overhead: "GNU Terry Pratchett"
X-CM-Score: 0.00
X-CNFS-Analysis: v=2.4 cv=JcEfrlKV c=1 sm=1 tr=0 ts=65d953e3
a=0nF1XD0wxitMEM03M9B4ZQ==:117 a=0nF1XD0wxitMEM03M9B4ZQ==:17
a=IkcTkHD0fZMA:10 a=gJVnBG7XAAAA:8 a=e3PW8LTqoU1Ci1bOJVAA:9 a=QEXdDO2ut3YA:10
a=eP4t8ZpUoh57DiAYbYVe:22
X-AUTH: mrabarnett@:2500
User-Agent: Mozilla Thunderbird
Content-Language: en-GB
In-Reply-To: <06a301da66be$bfdc0da0$3f9428e0$@SGA.Ninja>
X-CMAE-Envelope: MS4xfBqzSkkN308QvSpJLbWpilm0gFRxApOEwtULroJ7jF89+M0mGGbc5MR00gCQbiGHTj5fyIf6JVOyeI0eRN2uDeZ3SpJQ/dzpqkbRm2N8nmeM1YTOw7WP
XSjbQKphNSlMJH6Xz/QrLWHjjsP9dZBmJkL+HZ/0TXA3lP1ckB/RKNsxX6CU/Y+gmiiFIWqvWrNF2QFYedCUdc1SmOAKKJMH8Ns=
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: <76894f6f-551c-470a-93c7-b229c28f8b58@mrabarnett.plus.com>
X-Mailman-Original-References: <06a301da66be$bfdc0da0$3f9428e0$@SGA.Ninja>
 by: MRAB - Sat, 24 Feb 2024 02:26 UTC

On 2024-02-24 01:14, Steve GS via Python-list wrote:
> Python, Tkinter: How do I
> determine if a window has been
> resized? I want to locate
> buttons vertically along the
> right border and need to know
> the new width. The buttons are
> to move with the change of
> location of the right-side
> border.
>
Bind an event handler for '<Configure>':

----8<----

import tkinter as tk

def on_configure(*args):
print(args)

root = tk.Tk()
root.bind('<Configure>', on_configure)
root.mainloop()

----8<----

Are you placing the buttons yourself? I always use layouts and they
handle such things automatically.

1
server_pubkey.txt

rocksolid light 0.9.8
clearnet tor