Rocksolid Light

Welcome to novaBBS (click a section below)

mail  files  register  newsreader  groups  login

Message-ID:  

One small step for man, one giant stumble for mankind.


devel / comp.lang.python / Re: Learning tkinter

SubjectAuthor
o Re: Learning tkinterThomas Passin

1
Re: Learning tkinter

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

  copy mid

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

  copy link   Newsgroups: comp.lang.python
Path: i2pn2.org!i2pn.org!news.swapon.de!fu-berlin.de!uni-berlin.de!not-for-mail
From: lis...@tompassin.net (Thomas Passin)
Newsgroups: comp.lang.python
Subject: Re: Learning tkinter
Date: Thu, 18 May 2023 11:48:29 -0400
Lines: 45
Message-ID: <mailman.98.1684424919.13552.python-list@python.org>
References: <32e1bd95-9058-2896-2573-7e95d7aa1951@btinternet.com>
<64662490.5e0a0220.9af28.052a@mx.google.com>
<53305858-bd73-a166-6398-a2ac77f62bf8@tompassin.net>
Mime-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 8bit
X-Trace: news.uni-berlin.de Neem39G6QkFWzEwB81gFnwBeNvyun3iEe1ucLKYuLppg==
Return-Path: <list1@tompassin.net>
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=tompassin.net header.i=@tompassin.net header.b=Pq8KMGRB;
dkim-adsp=pass; dkim-atps=neutral
X-Spam-Status: OK 0.002
X-Spam-Evidence: '*H*': 1.00; '*S*': 0.00; 'traceback': 0.04; '(most':
0.05; 'last):': 0.05; 'tkinter': 0.07; 'linux': 0.09; 'import':
0.15; '>>>>': 0.16; '>>>>>': 0.16; 'functions,': 0.16;
'received:10.0.0': 0.16; 'received:64.90': 0.16;
'received:64.90.62': 0.16; 'received:64.90.62.162': 0.16;
'received:dreamhost.com': 0.16; 'subject:Learning': 0.16;
'subject:tkinter': 0.16; 'wrote:': 0.16; 'python': 0.16; 'grant':
0.17; 'to:addr:python-list': 0.20; 'depends': 0.25; 'bit': 0.27;
'>>>': 0.28; 'this?': 0.29; 'header:User-Agent:1': 0.30; 'am,':
0.31; 'module': 0.31; '"",': 0.32; 'python-list': 0.32;
'received:10.0': 0.32; 'received:mailchannels.net': 0.32;
'received:relay.mailchannels.net': 0.32; 'header:In-Reply-To:1':
0.34; 'functions': 0.36; 'those': 0.36; 'using': 0.37; "it's":
0.37; 'file': 0.38; 'skip:t 20': 0.66; 'entire': 0.67;
'header:Received:6': 0.67; 'received:64': 0.67; 'within': 0.69;
'attribute': 0.84; 'rob': 0.84
X-Sender-Id: dreamhost|x-authsender|tpassin@tompassin.net
ARC-Seal: i=1; s=arc-2022; d=mailchannels.net; t=1684424908; a=rsa-sha256;
cv=none;
b=c2ZIsjqKfhScuGoozOzBexkp+Pe0lyckf4GWbq0XGHCKe5S8E6rJ1V5Wd8aE7QF2kluVzf
Bi108i2Y9HlqmoUn4r1agYj+Z0OK8Cs6cIzJGNYwDyNLppboX1qzEnTmUEryo1qnoTmXUp
oh62vVSawHp4YJKmB31Jdxpef1f3U0Cc27JktwKNEKOVK13iCqZBgiQH4xbDiMKX8Oi6/9
HV/Ws8Ys4h4WN9GvCFo/5VlKib89UwDwTltlFR2mxjeQxtKbprIHJU7TuUKiKA22BYMUcI
YPXMwEQRfRlWWyIoWnaEImV6geSCROviIXOEpH8Xe+Ydwp3MgrL6SZMeqbmTiQ==
ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed;
d=mailchannels.net; s=arc-2022; t=1684424908;
h=from:from:reply-to:subject:subject:date:date:message-id:message-id:
to:to:cc:mime-version:mime-version:content-type:content-type:
content-transfer-encoding:content-transfer-encoding:
in-reply-to:in-reply-to:references:references:dkim-signature;
bh=a2parKOya7cOSHTI1+k5te3+0iv0MJEs/lU2/AczSJ4=;
b=vmSK4uneooojxRIfaiausHc+/0Nf0vKjqgzjhl23eI4sr3NEeYh22NMCcdQeZCID9TB5g8
uu58++nyovBl6RDITWK5ZFhO+jO30S08NYsqphBftqd5tNzmO/c8mF7E387QK8saSKkoov
OC55uXaAI01zMA80Tz5z5pPnnQQ4syRc1GqcAQT91Tj7GOixgl+lM4scsF8Dg8hcR7obFN
HBSrdAIj1QGYAChF170NqK5wJKQs7g4cn+NXo1F4FU6tt9VW96KjhqGt8s1LwRpIL3alE9
7cPUHhc7WgX/+kSEt9jY7hifqYooA7r8FObuA1qBp7o/I5FOrcfcr2LshmAMPA==
ARC-Authentication-Results: i=1; rspamd-79bb5575d7-4v2rn;
auth=pass smtp.auth=dreamhost smtp.mailfrom=list1@tompassin.net
X-Sender-Id: dreamhost|x-authsender|tpassin@tompassin.net
X-MC-Relay: Neutral
X-MailChannels-SenderId: dreamhost|x-authsender|tpassin@tompassin.net
X-MailChannels-Auth-Id: dreamhost
X-Battle-Supply: 0c0185563bbd88c4_1684424908571_2867910677
X-MC-Loop-Signature: 1684424908571:527737034
X-MC-Ingress-Time: 1684424908571
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=tompassin.net;
s=dreamhost; t=1684424908;
bh=a2parKOya7cOSHTI1+k5te3+0iv0MJEs/lU2/AczSJ4=;
h=Date:Subject:To:From:Content-Type:Content-Transfer-Encoding;
b=Pq8KMGRBoSvG5ttzyRaQSP/6l0DkR1mr8cMhvEpLQQaK0imaVtNa9cBOw7bh38PK2
RW0m0WRKN4nmkBXOCWyY9qS22xDB/WAa8Vlqw7l7zvDWTyBS4SWiDNd1AxEbk3GC+P
knCHFOizug8T8GQJwJE/mypiI8Nv8c62a6PK1QWsQ7XuA3hhiaBHC8inViimQpQVqq
ZdwtI7/9c7ULItAVEMyOmqwejsXMPQAV3l6VwKihXuWu2uYudCL1iLgcPKMJXeHDJK
EG18kR4O2PU2e8+24TJ3EwFmk1WMVXrfyR9vbhMQG8mm2DGHAS3ZwkqIkljq1k0jGO
1vPGb1CpxrapQ==
User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:102.0) Gecko/20100101
Thunderbird/102.11.0
Content-Language: en-US
In-Reply-To: <64662490.5e0a0220.9af28.052a@mx.google.com>
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: <53305858-bd73-a166-6398-a2ac77f62bf8@tompassin.net>
X-Mailman-Original-References: <32e1bd95-9058-2896-2573-7e95d7aa1951@btinternet.com>
<64662490.5e0a0220.9af28.052a@mx.google.com>
 by: Thomas Passin - Thu, 18 May 2023 15:48 UTC

On 5/18/2023 9:13 AM, Grant Edwards wrote:
> On 2023-05-12, Rob Cliffe via Python-list <python-list@python.org> wrote:
>>
>> Python 3.8.3 (tags/v3.8.3:6f8c832, May 13 2020, 22:20:19) [MSC v.1925 32
>> bit (Intel)] on win32
>> Type "help", "copyright", "credits" or "license" for more information.
>>>>> import tkinter
>>>>> tkinter.messagebox
>> Traceback (most recent call last):
>>   File "<stdin>", line 1, in <module>
>> AttributeError: module 'tkinter' has no attribute 'messagebox'
>>>>>
>
> $ python
> Python 3.11.3 (main, May 8 2023, 09:00:54) [GCC 12.2.1 20230428] on linux
> Type "help", "copyright", "credits" or "license" for more information.
>>>> import tkinter
>>>> from tkinter import messagebox
>>>> messagebox
> <module 'tkinter.messagebox' from '/usr/lib/python3.11/tkinter/messagebox.py'>
>>>>
>
>
>> Why is this?
>
> Dunno.

tkinter is a package, messagebox is a module within the tkinter package.
the messagebox module has some functions, such as showinfo(). You *can*
import those functions using "dot" expressions:

>>> from tkinter.messagebox import showinfo
<function showinfo at 0x0000021CED0634C0>

You can also import the entire module using the "dot" syntax:

>>> import tkinter.messagebox
>>> messagebox.showinfo
<function showinfo at 0x0000021CED0634C0>

Whether you can directly ask for tkinter.messagebox depends on whether
it's been defined or imported in tkinter/__init__.py.

1
server_pubkey.txt

rocksolid light 0.9.8
clearnet tor