[stdlib-sig] tkinter package idea

Brett Cannon brett at python.org
Wed Feb 20 22:46:12 CET 2008


On Wed, Feb 20, 2008 at 1:42 PM, Ron Adam <rrr at ronadam.com> wrote:
>
>
>  Brett Cannon wrote:
>   > On Feb 20, 2008 5:14 AM, Ron Adam <rrr at ronadam.com> wrote:
>   >>
>   >> M.-A. Lemburg wrote:
>   >>> On 2008-02-20 11:05, Brett Cannon wrote:
>   >>>> While I would rather have a tk package (heck, I would be fine with
>   >>>> ditching Tkinter entirely, but I really don't see that happening), but
>   >>>> the Tkinter name is so wide-spread I don't think that is reasonable.
>   >>> Hey, it's Py3k...
>   >> + 1
>   >>
>   >
>   > Is that for the removal or the package name of tk? Question applies to
>   > MAL as well as I forgot to ask that of him when he made the Py3K
>   > comment.
>
>  +1 on a tk package vs tkinter package.  It's much shorter and most of the
>  modules are still spelled nearly the same.
>
>     TkMessageBox -> tk.messagebox
>     TkFileDialog -> tk.filedialog
>
>
>
>   >>>> So here is my current thinking:
>   >>>>
>   >>>> Tkinter -> tkinter.__init__
>   >> Possibly
>   >>
>   >>     Tkinter -> tk.tkinter
>   >>
>   >> and have tk.__init__ import it with "from tk.tkinter import *"?
>   >
>   > I would rather do tk.inter than that amount of repetition in the
>   > package/module name.
>
>     Maybe it should be tk.interface?

Yeah, but tk.inter has the perk of being so close to Tkinter that all
of the name references out there will still (roughly) work. I would
really like to prevent from killing Tkinter's name recognition if
possible.

-Brett


More information about the stdlib-sig mailing list