Python Forum
Tkinter documentation
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Tkinter documentation
#1
Because the official Tkinter's documentation is not complete I have to learn Tcl/Tk language,learning a new language and translate its syntax take a great efforts. So to make things easier for Python's users ,I made this project "Tcl/Tk--|direct translation|-->Tkinter"
(https://tk-to-tkinter.blogspot.com/) and as I said in my project's description: "My objective is to make a direct translation from Tcl/Tk to Tkinter...". The work is not yet complete but I want the Python's community to benefit from it and participate in its developpement(I can share with you the translation's rules, they are my inventions :-) )
Reply
#2
The best documentation is here: http://infohost.nmt.edu/tcc/help/pubs/tk...index.html
Or download as PDF: http://www.nmt.edu/tcc/help/pubs/tkinter/tkinter.pdf

If you are planning on doing any serious graphics work, I suggest wxpython phoenix,
Sample Widgets: https://wxpython.org/Phoenix/docs/html/gallery.html
Documentation: https://wxpython.org/Phoenix/docs/html/index.html
windows installation: https://python-forum.io/Thread-wxPython-...ep-by-step
all of which which requires pyrhon 3
If you try to install wxpython using pip2, you will get an old version which works, but missing all of the great work that came out last summer.
or PtQt5: https://pypi.python.org/pypi/PyQt5/5.9.2

Other options: https://wiki.python.org/moin/GuiProgramming
Reply
#3
I am not a programmer I don't have the level to work with others toolkits, Tkinter is so easy especially to work with EVENTS.

After reading this reference(http://infohost.nmt.edu/tcc/help/pubs/tk...index.html) I wanted to contribute with some ideas (in addition to ask them to update their reference because Tk is in version 8.7 but this reference still in version 8.5), I tried to contact them by their email but no responce. The result I was obligated to learn "Tcl/Tk" and I noted that the reference is incomplete. learning a new language take a lot of time, so to make things easy I made this translation (it is just the beginning).

I can't deny that this reference is an inspiration's source for this work
Reply
#4
I know that the reference is old, but it's still valid. When I use tkinter, I useShipman's manual.
Reply
#5
*Shipman's manual is a good reference I don't say the opposite, but it is just not updated, exemple:
-in the manual we have [option = tkinter.VALUE] but we can write it in the form [option = "value"]
-the pack() method actually has different forms [pack_configure(),...]

*And I don't say that my work is a substitution to Shipman's manual, because:
-it is an amateur's work (I study in other scientific field but I always loved programming and python with Tkinter were a great opportunity to express my desire, please respect my feelings Sad ), I know there a lots of mistakes in my work.
-it is not yet complete
Reply
#6
Please, I am in no way discrediting your efforts.
By all means carry on!
Reply
#7
One of the problems I had encountered is the "Tk C API", I don't know how to translate them so I made some alternatives (by taking the objectifs of each one), exemple:
-Tk_GetCursor: I took the cursors list and translate it to " Cursors List".
-Tk_GetPixels: I took the screen units and translate them to "Screen Units".
I don't know if it works but it is all what I can do. Smile

Thanks you for any suggestions.
Reply
#8
I too am not a programmer and find much documentation is not easy for me to understand. 
For example when I look at the wxpython api documentation it really doesn't help me nor does looking at the examples. To me the examples are not much use without the actual code which produced them. 
If there was a piece of simple code showing the actual use of it I could work with that. In fact it has been the way I have managed to do anything using tkinter.
I know it's just the way my brain works but perhaps I could say much of the documentation might as well be in a language like Chinese because I don't recognize the characters whereas French, Spanish, German and so on do have pretty much the same character set.
It saddens me a great deal that I have this problem.
Reply
#9
1)For your language's problem: the English language is the most important language, All world's scientists speak english. In my country, French is the second language but in high school I noted that the most recent articles are written in english so my immediate decision was to switch my knowledge to english.

2) For "complete exemple" problem: you can find a lot on youtube which begin exemples from the "import" statement", and they are also on websites, exemple:
-http://www.tkdocs.com/
-http://effbot.org/tkinterbook/
-https://www.python-course.eu/python_tkinter.php

I hope I understood your message.
Reply
#10
Quote:To me the examples are not much use without the actual code which produced them.

There is code for each wxpython example. You need to run the program demo.py (from the source download)
Each example has three notebook tabs: Widget overview, Demo Code, Demo
The Demo window will have buttons for each component of the widget, click on anyone, and the matching source code
is immediately available.
Example:
Overview Page:
   

Code Page:
   

Demo Page:
   
Reply


Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020