Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

bpo-33280: Update link to Tcl/Tk 8.6 man pages #6473

Merged
merged 7 commits into from Apr 25, 2018
Merged

bpo-33280: Update link to Tcl/Tk 8.6 man pages #6473

merged 7 commits into from Apr 25, 2018

Conversation

andresdelfino
Copy link
Contributor

@andresdelfino andresdelfino commented Apr 14, 2018

`Practical Programming in Tcl and Tk <http://www.beedub.com/book/>`_
Brent Welch's encyclopedic book.

`TKDocs <http://www.tkdocs.com/>`_
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is about Tkinter, not just Tcl/Tk.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You mean it's better to show all links together?

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I mean that these two links are in wrong section.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I can see how TKDocs talks about Tkinter, but does "Practical Programming in Tcl and Tk" talk about Tkinter too?

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The Welch's excellent book is about Tcl/Tk. The Lutz's book is about Python and Tkinter in particular.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I can see how TKDocs talks about Tkinter (moved the link on the last update of the PR), but can0t see how "Practical Programming in Tcl and Tk" talks about Tkinter. Is that the case or am I not getting you?

`TKDocs <http://www.tkdocs.com/>`_
Extensive tutorial plus friendlier widget pages for some of the widgets.

`Programming Python <http://learning-python.com/about-pp4e.html>`_
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is not Tcl/Tk documentation.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Sorry, it slipped.

Copy link
Member

@serhiy-storchaka serhiy-storchaka left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Some links was reordered in the first section. "Programming Python" and "TKDocs" was moved to the end. Is this for purpose?

@andresdelfino
Copy link
Contributor Author

@serhiy-storchaka Sorry, no, the change of the order was unintentional. I have reverted it in the last commit.

Copy link
Member

@terryjreedy terryjreedy left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I tested the new link and it does not do the job needed. It goes to the wrong place for tkinter users looking for documentation of tk/tkinter widgets. The same was true for the two links replaced. They required just one click instead of two to get to the right place, but had disadvantages, so the new link should be kept, but as a secondary addition.

Since there is no generic 8.x Tk commands (widgets) page, the best we can do for tk widget docs is to link the most likely 8.x page (8.6 for now), and tell users to change '6' for the corresponding page for other tk versions. I use this page constantly along with the NMT 8.5 tkinter reference.

Running ``python -m tkinter`` from the command line should open a window
demonstrating a simple Tk interface, letting you know that :mod:`tkinter` is
properly installed on your system, and also showing what version of Tcl/Tk is
installed, so you can read the Tcl/Tk documentation specific to that version.
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Separate paragraph is improvement.


.. seealso::

Tkinter documentation:

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I like the separate paragraph for testing, and the separation of tkinter versus tk docs. Some of the descriptions could be updated, but lets make that a separate issue.

Tcl/Tk documentation:

`Tcl/Tk recent man pages <https://www.tcl.tk/doc/>`_
Recent Tcl/Tk manuals on www.tcl.tk.
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is the heart of the issue. I see two deficiencies wtih the link above.

  1. This link has quick links to 8.6 and 8.7 but not 8.5.
  2. Each link goes to an general tcl/tk index page for 8.x with 16 entries. One has to know to then click the following, which will not be obvious to everyone.
Tk Commands
    The additional commands which the wish interpreter implements.

I was initially confused because I did not know until now that there are two tcl shell/interpreters and that tkinter is implementing the wish add-ons, and not core tcl/tk, or perhaps the following.

Tk Library
    The additional C functions which a Tk extended C program may use.

So I strongly suggest adding at the top what 99% of users of this section need to read.

Tk commands <https://www.tcl.tk/man/tcl8.6/TkCmd/contents.htm>
  Commands without '__' in their name correspond to tkinter and ttk widget classes.
  Change '6' to '4', '5', or '7' for the corresponding tk/tkinter versions.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I agree. Since we are bundling 8.6 it does make sense to make it the default link, while pointing out how to get to the other versions too.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Oh, I missed that @andresdelfino moved one level up. The link to the default Tcl/Tk manual is https://www.tcl.tk/man/tcl/.

I think this link is for more advanced users, and for beginners the link to effbot.org and similar resources is more preferable. Maybe we should copy the content from external resources.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

If you are saying that our doc should include a tk widget reference, I agree. Another issue.

@bedevere-bot
Copy link

A Python core developer has requested some changes be made to your pull request before we can consider merging it. If you could please address their requests along with any other requests in other reviews from core developers that would be appreciated.

Once you have made the requested changes, please leave a comment on this pull request containing the phrase I have made the requested changes; please review again. I will then notify any core developers who have left a review that you're ready for them to take another look at this pull request.

@andresdelfino
Copy link
Contributor Author

I have made the requested changes; please review again

@bedevere-bot
Copy link

Thanks for making the requested changes!

@terryjreedy, @serhiy-storchaka: please review the changes made to this pull request.

@bedevere-bot
Copy link

A Python core developer has requested some changes be made to your pull request before we can consider merging it. If you could please address their requests along with any other requests in other reviews from core developers that would be appreciated.

Once you have made the requested changes, please leave a comment on this pull request containing the phrase I have made the requested changes; please review again. I will then notify any core developers who have left a review that you're ready for them to take another look at this pull request.

@andresdelfino
Copy link
Contributor Author

I didn't expect the Spanish Inquisition :)

@bedevere-bot
Copy link

Nobody expects the Spanish Inquisition!

@terryjreedy, @serhiy-storchaka: please review the changes made to this pull request.

@andresdelfino
Copy link
Contributor Author

andresdelfino commented Apr 23, 2018

Sorry, I followed bedevere's instructions because I didn't see @terryjreedy approval.

@serhiy-storchaka serhiy-storchaka merged commit 67a8f4f into python:master Apr 25, 2018
@miss-islington
Copy link
Contributor

Thanks @andresdelfino for the PR, and @serhiy-storchaka for merging it 🌮🎉.. I'm working now to backport this PR to: 2.7, 3.6, 3.7.
🐍🍒⛏🤖 I'm not a witch! I'm not a witch!

@miss-islington
Copy link
Contributor

Sorry, @andresdelfino and @serhiy-storchaka, I could not cleanly backport this to 3.6 due to a conflict.
Please backport using cherry_picker on command line.
cherry_picker 67a8f4fed3169e1b8c947c10f6e06863e399ae32 3.6

miss-islington pushed a commit to miss-islington/cpython that referenced this pull request Apr 25, 2018
(cherry picked from commit 67a8f4f)

Co-authored-by: Andrés Delfino <34587441+andresdelfino@users.noreply.github.com>
@bedevere-bot
Copy link

GH-6600 is a backport of this pull request to the 3.7 branch.

@miss-islington
Copy link
Contributor

Sorry, @andresdelfino and @serhiy-storchaka, I could not cleanly backport this to 2.7 due to a conflict.
Please backport using cherry_picker on command line.
cherry_picker 67a8f4fed3169e1b8c947c10f6e06863e399ae32 2.7

@bedevere-bot
Copy link

GH-6602 is a backport of this pull request to the 3.6 branch.

miss-islington added a commit that referenced this pull request Apr 25, 2018
(cherry picked from commit 67a8f4f)

Co-authored-by: Andrés Delfino <34587441+andresdelfino@users.noreply.github.com>
@bedevere-bot
Copy link

GH-6603 is a backport of this pull request to the 2.7 branch.

@andresdelfino
Copy link
Contributor Author

GH-6607 is a backport of this pull request to the 2.7 branch.

serhiy-storchaka pushed a commit that referenced this pull request Apr 26, 2018
…H-6607)

(cherry picked from commit 67a8f4f)

Co-authored-by: Andrés Delfino <34587441+andresdelfino@users.noreply.github.com>
serhiy-storchaka pushed a commit that referenced this pull request Apr 26, 2018
…6602)

(cherry picked from commit 67a8f4f)

Co-authored-by: Andrés Delfino <34587441+andresdelfino@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
docs Documentation in the Doc dir skip news
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

6 participants