简体   繁体   中英

suggestion on tkinter for python 3.X

first of all my apology if you find this topic redundant....but I need some specific answers from you..thats why I have made this.

I have recently start learning tkinter for python. But I cant decide which route to take . Every tutorial comes up with a new approach which is confusing. So I need to know:

1.Which part of tkinter should I study first ??

2.what knowledge should I have before start tkinter ??

3.is there any book or tutorial where the top to bottom structure is documented ??

4.whats your suggestion for me to learn the tkinter in detail ??

thanks.

Q1.- Get familiar with basic containers and widgets and their properties, then understand the diffferent methods to layout your widgets, and finally study how the command propertie and events work for connecting your program logic with your widgets.

Q2.- Tkinter does not requires any special background except for Python itself.
Tkinter is often used in an "non OOP" mode (no classes defined, etc). This is OK for very simple things, but I recommend to define your frame in a class and use OOP to structure your application widgets and behavior. So better if you are familiar with OOP. Suggestions in Q3 use this approach.

Q3.- My suggestions in the order indicated:
1) Tkinter 8.4 reference: a GUI for Python (John W. Shipman, 2010)
2) Thinking in TkInter (Stephen Ferg, 2005) and references herein

Q4.- write your GUIs, read others code, repeat.

thanks man, tkinter 8.4 reference was quite useful. I also found Core Python Programming was very useful to learn the very basics of tkinter.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM