Rocksolid Light

Welcome to RetroBBS

mail  files  register  newsreader  groups  login

Message-ID:  

You scratch my tape, and I'll scratch yours.


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.17.1708904608.3452.python-list@python.org>

  copy mid

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

  copy link   Newsgroups: comp.lang.python
Path: i2pn2.org!i2pn.org!nntp.comgw.net!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: Sun, 25 Feb 2024 23:40:20 +0000
Lines: 27
Message-ID: <mailman.17.1708904608.3452.python-list@python.org>
References: <06f101da66da$902357f0$b06a07d0$@SGA.Ninja>
<C72A9439-2300-4DCD-8A56-7C3AAE718EF4@barrys-emacs.org>
<070d01da66fa$5faea870$1f0bf950$@SGA.Ninja>
<31caf694-99fd-41ca-a98c-cb0d5d4a758e@tompassin.net>
<077801da6782$4f6046d0$ee20d470$@SGA.Ninja>
<13edcbad-1914-424c-97aa-3679eaf77fd8@mrabarnett.plus.com>
<07b101da6795$97d57df0$c78079d0$@SGA.Ninja>
<5d93173f-b172-408a-a052-c670214581b2@mrabarnett.plus.com>
<07c701da679e$d3a8a6f0$7af9f4d0$@SGA.Ninja>
<dd484037-16c8-b707-89f6-99f327207913@yahoo.co.uk>
<083301da6830$63224480$2966cd80$@SGA.Ninja>
<eb9aa840-34a9-44ba-863d-5e30c1333180@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 ZEByyXNjCZSIR3MUv65PiQ9+SNdFFNtP0y4bHpdUsrUg==
Cancel-Lock: sha1:Ue3HHi/27vUEBouliyNLPzdoR4Y= sha256:kjztB+19fdF/YmWVLAxcuiip7MgH5n6YB/YAcd+a7+Y=
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=G429DlJa;
dkim-adsp=none (unprotected policy); dkim-atps=neutral
X-Spam-Status: OK 0.004
X-Spam-Evidence: '*H*': 0.99; '*S*': 0.00; 'traceback': 0.04; '(most':
0.05; 'last):': 0.05; 'fails': 0.09; 'from:addr:python': 0.09;
'received:192.168.1.64': 0.09; 'suggestion,': 0.09; 'typeerror:':
0.09; '[snip]': 0.16; 'from:addr:mrabarnett.plus.com': 0.16;
'from:name:mrab': 0.16; 'message-id:@mrabarnett.plus.com': 0.16;
'mistake.': 0.16; 'received:84.93': 0.16; 'received:84.93.230':
0.16; 'received:plus.net': 0.16; 'variable,': 0.16; 'wrote:':
0.16; 'uses': 0.19; 'to:addr:python-list': 0.20; 'maybe': 0.22;
'code': 0.23; 'function': 0.27; 'header:User-Agent:1': 0.30;
'program': 0.31; 'here,': 0.32; 'python-list': 0.32;
'received:192.168.1': 0.32; 'but': 0.32; 'header:In-Reply-To:1':
0.34; 'close': 0.35; 'fix': 0.36; 'received:192.168': 0.37;
'file': 0.38; 'use': 0.39; 'steve': 0.39; 'should': 0.40; 'skip:0
20': 0.61; "there's": 0.61; 'bad': 0.67; 'outside': 0.67; 'adds':
0.69; 'interesting': 0.71; 'extra': 0.84; 'itself.': 0.84; 'me:':
0.91; 'width': 0.91
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=plus.com; s=042019;
t=1708904420; bh=DhZg8zI0SKBYevSd1Y5S/wvTrgIF660LpP0C2pJ3Ye0=;
h=Date:Subject:To:References:From:In-Reply-To;
b=G429DlJao2rsq0xX7nkzyeKV5mI/sTRZAW1yc0BxdxXDxHSbF100c0Niwd4R7q9um
X5ypdRhpRYkqSWbJ+voDtrFkMkL0OgK+/3/eU3ZFH29VXkiswyTN9I34Iu5kMu0DSc
kmpwu/rW/PwGynokPqe7t/rS5CHMC0dw8FFiKRgKHVUUo2hizc7feoa3lMJeFcwy/U
v+O6IMje5qgpEaBqp0Ecc1MKwgayw5c3V9XlL4NRBvpANOSqt5LVyIUfj0pe6Dfcrk
9plNMx9wybn2/GgG47MryC0JJsYSv4aHqBtXVmAAuBqn357LuRXcqaj5jTAhYhM55g
HsuoOEVhvv4hg==
X-Clacks-Overhead: "GNU Terry Pratchett"
X-CM-Score: 0.00
X-CNFS-Analysis: v=2.4 cv=Z7pPH2RA c=1 sm=1 tr=0 ts=65dbcfe4
a=0nF1XD0wxitMEM03M9B4ZQ==:117 a=0nF1XD0wxitMEM03M9B4ZQ==:17
a=IkcTkHD0fZMA:10 a=nW_zbUQDbyxoZBS6iSIA:9 a=QEXdDO2ut3YA:10
X-AUTH: mrabarnett@:2500
User-Agent: Mozilla Thunderbird
Content-Language: en-GB
In-Reply-To: <083301da6830$63224480$2966cd80$@SGA.Ninja>
X-CMAE-Envelope: MS4xfIrT/iHZ4IzWQvFpM7SsXx9hZRFfdscny2oArPqGik5mNluHpENuYJGiwU4ZbI9dk1ld2PZP6BOV5m7YdjKKqOjAnIlxAL/edYYOJH34aW5rmZPfpjXn
oEafeC4QKvw6wESpnnHK016Qg7YLGyL9Wekp1DOrd4YCule5r+61wZJkRZnHfMBG6bzUioFO1qtKZ5NzK9MP7eFgzP7iTxx8uws=
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: <eb9aa840-34a9-44ba-863d-5e30c1333180@mrabarnett.plus.com>
X-Mailman-Original-References: <06f101da66da$902357f0$b06a07d0$@SGA.Ninja>
<C72A9439-2300-4DCD-8A56-7C3AAE718EF4@barrys-emacs.org>
<070d01da66fa$5faea870$1f0bf950$@SGA.Ninja>
<31caf694-99fd-41ca-a98c-cb0d5d4a758e@tompassin.net>
<077801da6782$4f6046d0$ee20d470$@SGA.Ninja>
<13edcbad-1914-424c-97aa-3679eaf77fd8@mrabarnett.plus.com>
<07b101da6795$97d57df0$c78079d0$@SGA.Ninja>
<5d93173f-b172-408a-a052-c670214581b2@mrabarnett.plus.com>
<07c701da679e$d3a8a6f0$7af9f4d0$@SGA.Ninja>
<dd484037-16c8-b707-89f6-99f327207913@yahoo.co.uk>
<083301da6830$63224480$2966cd80$@SGA.Ninja>
 by: MRAB - Sun, 25 Feb 2024 23:40 UTC

On 2024-02-25 21:19, Steve GS via Python-list wrote:
> SOLUTION FOUND!
>
> The fix was to write the code that uses the width value and to place it into the function itself.
> Kluge? Maybe but it works.
>
> Mischief Managed.
>
> ========================
> As for the most recent suggestion, it fails for me:
>
> Traceback (most recent call last):
> File "F:/___zInsulin Code A 08-02-23/WinPic/IOWw.pyw", line 14, in <module>
> print("Ww Outside = <" + str(Ww) > + ">")
> TypeError: bad operand type for unary +: 'str'
>
It fails because there's a mistake. It should be:

print("Ww Outside = <" + str(Ww) + ">")

> With the need to close the window, it adds an extra step and intervention to the program to use. I am not sure how this help[s.
>
> As a curio, it would be interesting to see how to use the value of a variable, created in the function used here, and make it available to the code outside the function.
>
[snip]

1
server_pubkey.txt

rocksolid light 0.9.8
clearnet tor