[Patches] [ python-Patches-869468 ] Allow use of embedded Tcl without requiring Tk

SourceForge.net noreply at sourceforge.net
Sat Jan 3 06:58:51 EST 2004


Patches item #869468, was opened at 2004-01-02 19:22
Message generated for change (Comment added) made by loewis
You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=305470&aid=869468&group_id=5470

Category: Tkinter
Group: Python 2.4
Status: Open
Resolution: None
Priority: 5
Submitted By: David Ascher (david_ascher)
>Assigned to: David Ascher (david_ascher)
Summary: Allow use of embedded Tcl without requiring Tk

Initial Comment:
Two things:

1) docstrings added to most attributes of the _tkinter 
app object


2) allow the user to create Tkinter.Tcl objects which are 
just like Tkinter.Tk objects except that they do not 
initialize Tk.  This is useful in circumstances where the 
script is being run on machines that do not have an X 
server running -- in those cases, Tk initialization fails, 
even if no window is ever created.

I'll be glad to discuss the implementation choices.

This has been tested on Windows, Linux, and Solaris.

I'm hoping to figure out how to attach the test file as 
well.  I don't have any documentation patch -- I'm 
willing to contribute one, but given the state of Tkinter 
documentation am not sure where to start...



----------------------------------------------------------------------

>Comment By: Martin v. Löwis (loewis)
Date: 2004-01-03 12:58

Message:
Logged In: YES 
user_id=21627

The patch looks fine, please apply.

As for documentation: it has been custom to just document
the changes (and perhaps write the bare minimum of structure
to add the changes) to lib/tkinter.tex. I see no problem
with some features being documented and others not - over
time, documentation will complete if we continue with this
custom.

I wonder whether the loading of Tk can be simplified as
evaluating
"package require Tk" instead of calling Tk_Init(); I don't
know what the difference between these two is.

----------------------------------------------------------------------

You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=305470&aid=869468&group_id=5470



More information about the Patches mailing list