I am trying to write a Python program. This program is supposed to make a bar with two buttons on it pop up.
However, I cannot get this to work. The error is: "ImportError: No module named tkinter"
Below is the script of my program.
If anyone know enough about Python to know what I'm doing wrong, help would be greatly appreciated!
from tkinter import *
print("Yeh! Your button just did something!")
self.QUITBUTTON = Button(self)
self.QUITBUTTON["text"] = "QUIT BUTTON"
self.QUITBUTTON["fg"] = "red"
self.QUITBUTTON["command"] = self.quit
self.do_something = Button(self)
self.do_something["text"] = "CLICK TO DO SOMETHING BUTTON",
self.do_something["command"] = self.say_Yeh
def _init_(self, master=None):
root = Tk()
app = Application(master=root)