[Patches] [ python-Patches-869468 ] Allow use of embedded Tcl
without requiring Tk
SourceForge.net
noreply at sourceforge.net
Sun Jan 4 12:21:20 EST 2004
Patches item #869468, was opened at 2004-01-02 12:22
Message generated for change (Comment added) made by jepler
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: Jeff Epler (jepler)
Date: 2004-01-04 11:21
Message:
Logged In: YES
user_id=2772
I think that "package require Tk" is commonly broken. It is on RedHat 9 and Fedora Core 1.
[jepler at parrot]$ tclsh
% package require Tk
can't find package Tk
----------------------------------------------------------------------
Comment By: Martin v. Löwis (loewis)
Date: 2004-01-03 05: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