Movatterモバイル変換


[0]ホーム

URL:


homepage

Message265591

This issue trackerhas been migrated toGitHub, and is currentlyread-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Authorserhiy.storchaka
Recipientsserhiy.storchaka, terry.reedy
Date2016-05-15.08:04:05
SpamBayes Score-1.0
Marked as misclassifiedYes
Message-id<1463299445.94.0.887025569149.issue27025@psf.upfronthosting.co.za>
In-reply-to
Content
For now Tkinter generates Tk widget names just from Widget instance id.>>> import tkinter>>> root = tkinter.Tk()>>> frame = tkinter.Frame(root)>>> button = tkinter.Button(frame)>>> str(button)'.3070531884.3055478668'These names are not very readable and distinguishable. I think it would be better to generate names from widget type and short sequential number. For example '.frame#1.button#2' or '.1frame.2button'.There are some questions:1. Should numbering be continuous or separate for different types of widgets?2. Should a number precede or follow a widget type?3. What separator, prefix or suffix be used? "#" looks too common and can lead to conflicts with user defined names or names generated by Tk or special Tk syntax.
History
DateUserActionArgs
2016-05-15 08:04:06serhiy.storchakasetrecipients: +serhiy.storchaka,terry.reedy
2016-05-15 08:04:05serhiy.storchakasetmessageid: <1463299445.94.0.887025569149.issue27025@psf.upfronthosting.co.za>
2016-05-15 08:04:05serhiy.storchakalinkissue27025 messages
2016-05-15 08:04:05serhiy.storchakacreate
Supported byThe Python Software Foundation,
Powered byRoundup
Copyright © 1990-2022,Python Software Foundation
Legal Statements

[8]ページ先頭

©2009-2026 Movatter.jp