Here\'s my problem: I\'m running the code in this example. I have Python 2.7 and 3 installed on my RaspberryPi but I have checked and double-checked, and I am running the c
Another workaround would be the following:
try: import tkinter except: import Tkinter as tkinter
This way you would always have the module tkinter available and depending on the Python version your program loads tkinter or Tkinter.