Python Forum
Tkinter book for Python 2.7, but using Python 3.5/3.6
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Tkinter book for Python 2.7, but using Python 3.5/3.6
#1
I haven't been this thrilled about a thrift store find since I found my favorite quarterback's NFL jersey in my size for 4 bucks.  I've found a book about creating GUIs with tkinter for Python at a local thrift store.  It was mixed in with obsolete computer books such as books on MS Access 2000, DBASE, and Lotus 123.  $2 has landed me what would have been an expensive purchase at Amazon.  

This one is slightly dated too, but I think I can use it.  It's for Python 2.7, but I'm using Python 3.5 on my Linux PC and 3.6 on my Windows one.  So far, from googling, I've determined I can use the book anyway if I watch the following:

1. Spell it "tkinter" instead of "Tkinter". 
2. Watch for print commands missing the parentheses.  

My question: Is there anything else I need to watch for?
Reply
#2
Snippsat just announced https://python-forum.io/Thread-Release-of-IPython-6-0
that IPython 6 no longer will support anything below Python 3.3

Also, you can download a great tkinter reference manual (PDF) here: http://infohost.nmt.edu/tcc/help/pubs/tk...index.html
Reply
#3
i think that most if not all of the tkinter related changes between python2.x and python3.x is just module name changes and locations
Python 2.x Syntax: Tkdnd 
Python 3.x Syntax: tkinter.dnd 

Python 2.x Syntax: tkSimpleDialog 
Python 3.x Syntax: tkinter.simpledialog 

Python 2.x Syntax: Tkconstants 
Python 3.x Syntax: tkinter.constants 

Python 2.x Syntax: Dialog 
Python 3.x Syntax: tkinter.dialog 

Python 2.x Syntax: FileDialog 
Python 3.x Syntax: tkinter.FileDialog 

Python 2.x Syntax: tkFont 
Python 3.x Syntax: tkinter.font 

Python 2.x Syntax: Tix 
Python 3.x Syntax: tkinter.tix 

Python 2.x Syntax: tkCommonDialog 
Python 3.x Syntax: tkinter.commondialog 

Python 2.x Syntax: SimpleDialog 
Python 3.x Syntax: tkinter.simpledialog 

Python 2.x Syntax: ScrolledText 
Python 3.x Syntax: tkinter.scolledtext 

Python 2.x Syntax: tkColorChooser 
Python 3.x Syntax: tkinter.colorchooser 

Python 2.x Syntax: tkFileDialog 
Python 3.x Syntax: tkinter.filedialog 

Python 2.x Syntax: tkMessageBox 
Python 3.x Syntax: tkinter.messagebox 

Python 2.x Syntax: Tkinter 
Python 3.x Syntax: tkinter 
Recommended Tutorials:
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  [Tkinter] Help create scrollbar in chatbot with tkinter on python fenec10 4 1,432 Aug-07-2023, 02:59 PM
Last Post: deanhystad
  My Background Image Is Not Appearing (Python Tkinter) HailyMary 2 3,984 Mar-14-2023, 06:13 PM
Last Post: deanhystad
  main lop in python tkinter barryjo 6 5,061 Jan-24-2022, 03:09 AM
Last Post: deanhystad
  Python Google maps API -> GUI tkinter Nick_tkinter 9 5,653 Apr-07-2021, 01:52 PM
Last Post: Nick_tkinter
  Continue command in python tkinter? MLGpotato 7 8,341 Mar-27-2021, 04:59 AM
Last Post: deanhystad
  Python tkinter question tablet Nick_tkinter 8 4,930 Mar-04-2021, 10:44 PM
Last Post: Larz60+
  tkinter -- after() method and return from function -- (python 3) Nick_tkinter 12 7,251 Feb-20-2021, 10:26 PM
Last Post: Nick_tkinter
  [Tkinter] Python - Tkinter Ditrate40 10 7,123 Feb-12-2021, 01:53 PM
Last Post: Nick_tkinter
  tkinter python button position problem Nick_tkinter 3 3,491 Jan-31-2021, 05:15 AM
Last Post: deanhystad
  [Tkinter] Python - Tkinter : How can I send path Excel from GUI to scripte johnjh 2 4,242 Aug-28-2020, 05:38 PM
Last Post: maaad

Forum Jump:

User Panel Messages

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