Rocksolid Light

Welcome to RetroBBS

mail  files  register  newsreader  groups  login

Message-ID:  

news: gotcha


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

SubjectAuthor
* Problem resizing a window and button placementSteve GS
`- Re: Problem resizing a window and button placementStefan Ram

1
Problem resizing a window and button placement

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

  copy mid

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

  copy link   Newsgroups: comp.lang.python
Path: i2pn2.org!i2pn.org!news.swapon.de!fu-berlin.de!uni-berlin.de!not-for-mail
From: Gronicus@SGA.Ninja (Steve GS)
Newsgroups: comp.lang.python
Subject: Problem resizing a window and button placement
Date: Fri, 23 Feb 2024 20:14:00 -0500
Lines: 20
Message-ID: <mailman.0.1708738860.3452.python-list@python.org>
References: <06a301da66be$bfdc0da0$3f9428e0$@SGA.Ninja>
Mime-Version: 1.0
Content-Type: text/plain;
charset="us-ascii"
Content-Transfer-Encoding: 7bit
X-Trace: news.uni-berlin.de /e79AoCpY5TkPnn7IFG50ACo90EFzJyoI+xzbQdDuaBQ==
Cancel-Lock: sha1:O6UzR9HgTRgs+Aq1g41qbpZLHPg= sha256:kVqUJbXUhCUi11o2WwxRSgfDXji6ZtfSLY69Bl1oX/U=
Return-Path: <Gronicus@SGA.Ninja>
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=sga.ninja header.i=@sga.ninja header.b=Ghol8nu3;
dkim-adsp=pass; dkim-atps=neutral
X-Spam-Status: OK 0.009
X-Spam-Evidence: '*H*': 0.98; '*S*': 0.00; 'url-ip:13.107.213.67/32':
0.09; 'url-ip:13.107.213/24': 0.09; 'url-ip:13.107.246.67/32':
0.09; 'url-ip:13.107.246/24': 0.09; 'buttons': 0.16;
'from:addr:gronicus': 0.16; 'from:addr:sga.ninja': 0.16; 'locate':
0.16; 'message-id:@SGA.Ninja': 0.16; 'received:floathosting.com':
0.16; 'received:mars.floathosting.com': 0.16; 'to:addr:python-
list': 0.20; 'python,': 0.25; 'window': 0.32; 'change': 0.36;
'url-ip:13.107/16': 0.38; 'want': 0.40; 'url-ip:104.18/16': 0.67;
'right': 0.68; 'border': 0.91
DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=sga.ninja;
s=default;
h=Content-Type:MIME-Version:Message-ID:Date:Subject:To:From:Sender
:Reply-To:Cc:Content-Transfer-Encoding:Content-ID:Content-Description:
Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:
In-Reply-To:References:List-Id:List-Help:List-Unsubscribe:List-Subscribe:
List-Post:List-Owner:List-Archive;
bh=+ZusuLJDHeYdUalCtZAx0yJfL4GpqFKTqvrYV1pSK3Q=; b=Ghol8nu3S8K5crwdX/H35o6csW
nfPgdUzwwkK0njkgy0woKwzZbXUtizm2pPlx0z9u6hcIJubs1TuOrCC5+x2bp6Uy6VKnaN83eUomV
aGQAmFYCr0RG+kuGGzQCoVLuTNOSwtrPigc8ZCWIB6sclKAOqCHhgeGa7Wx+Gtq6rGy5CB1/bE8iD
jpK6mBEZi+66jwvPWELkSuR1yHArRqWMYc7ee2OB0DKx/kyRao2oGX/mHGnr1XtbYrxR+29cBBMWU
dhnKji2pCcalwuanKPwSij5nF89Wx+th31b5XoXgtfSw5c/cHJKGwtELFhT52v5zfeIrvQ0PBaSNn
6n/bDN0A==;
X-Mailer: Microsoft Outlook 16.0
Thread-Index: AdpmvrV1w8AfACkWTAex8Mcqno6m2g==
Content-Language: en-us
X-AntiAbuse: This header was added to track abuse,
please include it with any abuse report
X-AntiAbuse: Primary Hostname - mars.floathosting.com
X-AntiAbuse: Original Domain - python.org
X-AntiAbuse: Originator/Caller UID/GID - [47 12] / [47 12]
X-AntiAbuse: Sender Address Domain - SGA.Ninja
X-Get-Message-Sender-Via: mars.floathosting.com: authenticated_id:
gronicus@sga.ninja
X-Authenticated-Sender: mars.floathosting.com: gronicus@sga.ninja
X-Source:
X-Source-Args:
X-Source-Dir:
X-Content-Filtered-By: Mailman/MimeDel 2.1.39
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: <06a301da66be$bfdc0da0$3f9428e0$@SGA.Ninja>
 by: Steve GS - Sat, 24 Feb 2024 01:14 UTC

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.

SGA

Re: Problem resizing a window and button placement

<width-20240224105538@ram.dialup.fu-berlin.de>

  copy mid

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

  copy link   Newsgroups: comp.lang.python
Path: i2pn2.org!i2pn.org!news.swapon.de!fu-berlin.de!uni-berlin.de!not-for-mail
From: ram@zedat.fu-berlin.de (Stefan Ram)
Newsgroups: comp.lang.python
Subject: Re: Problem resizing a window and button placement
Date: 24 Feb 2024 09:56:11 GMT
Organization: Stefan Ram
Lines: 23
Expires: 1 Feb 2025 11:59:58 GMT
Message-ID: <width-20240224105538@ram.dialup.fu-berlin.de>
References: <mailman.0.1708738860.3452.python-list@python.org>
Mime-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
X-Trace: news.uni-berlin.de tt246YwUndz81JWMyTrSTwVOCOh96qWyGZuEIKW/Z4/ocj
Cancel-Lock: sha1:td7AjVOlPMTB1d2aqq+hp2eez08= sha256:ccOradSV67vHYuePL0E/8vqowb6zKWO/oFBZZDj3fgI=
X-Copyright: (C) Copyright 2024 Stefan Ram. All rights reserved.
Distribution through any means other than regular usenet
channels is forbidden. It is forbidden to publish this
article in the Web, to change URIs of this article into links,
and to transfer the body without this notice, but quotations
of parts in other Usenet posts are allowed.
X-No-Archive: Yes
Archive: no
X-No-Archive-Readme: "X-No-Archive" is set, because this prevents some
services to mirror the article in the web. But the article may
be kept on a Usenet archive server with only NNTP access.
X-No-Html: yes
Content-Language: en-US
Accept-Language: de-DE-1901, en-US, it, fr-FR
 by: Stefan Ram - Sat, 24 Feb 2024 09:56 UTC

"Steve GS" <Gronicus@SGA.Ninja> writes:
>width

Using a geometry manager, such as "pack", you usually do not need
to know when a window has been resized or to know that width.

You need to read a good tkinter book and learn about:

tkinter.Tk
pack
tkinter.Frame
side=tkinter.LEFT
side=tkinter.RIGHT
expand=tkinter.YES
fill=tkinter.X
fill=tkinter.Y
fill=tkinter.BOTH

. I'd recommand the GUI part of "Programming Python" by Mark Lutz!

The geometry manages "pack" and "grid" should be able
to handle 99 percent of all GUI geometry requirements,
so you would need a good reason not to use them.

1
server_pubkey.txt

rocksolid light 0.9.81
clearnet tor