Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 82df03e

Browse files
committed
Rationalized instructions for _tkinter.c
1 parent 6554419 commit 82df03e

1 file changed

Lines changed: 12 additions & 17 deletions

File tree

Modules/Setup.in

Lines changed: 12 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -231,28 +231,23 @@ md5 md5module.c md5c.c
231231
#timing timingmodule.c
232232

233233

234-
# Steen Lumholt's tkinter module.
235-
#
236-
# For use with plain Tk, use the first line.
237-
#
238-
# For use with extended Tk (i.e. if you have added extra widgets to
239-
# the Tk library, such as the common "studButton" and "triButton"
240-
# extensions), edit tkappinit.c, add appropriate -DWITH_... and
241-
# libraries/objects to the second line, and use that.
242-
#
243-
# Make sure to edit the -l arguments to use the correct versions!
244-
#
245-
# In all cases also enable the last line (TKPATH).
234+
# The _tkinter module.
246235
#
247236
# See the section "The Tk interface" in ../README for more info.
237+
#
238+
# Enable the TKPATH line and choose the most applicable _tkinter line.
239+
# You may have to change /usr/local to wherever Tcl/Tk are installed.
240+
# Change the -l arguments to use Tcl 7.4 and Tk 4.0!
248241

249-
# *** Use ONE of the following two lines, see previous comments ***
250-
#_tkinter _tkinter.c -I/usr/local/include -L/usr/local/lib -ltk4.1 -ltcl7.5 -lX11
251-
#_tkinter _tkinter.c tkappinit.c -DWITH_APPINIT -I/usr/local/include -L/usr/local/lib -ltk4.1 -ltcl7.5 -lX11
252-
253-
# *** ALWAYS use this line as well ***
242+
# *** ALWAYS enable this line:
254243
#TKPATH=:$(DESTLIB)/tkinter
255244

245+
# *** Enable *one* of the following lines:
246+
# For Solaris:
247+
#_tkinter _tkinter.c -I/usr/openwin/include -I/usr/local/include -L/usr/openwin/lib -L/usr/local/lib -ltk4.1 -ltcl7.5 -lX11
248+
# For generic system (may have to add -I/-L options to find X11):
249+
#_tkinter _tkinter.c -I/usr/local/include -L/usr/local/lib -ltk4.1 -ltcl7.5 -lX11
250+
256251

257252
# Lance Ellinghaus's modules:
258253

0 commit comments

Comments
 (0)