Hello there,
I am using Python 2.6 and Geany as my Programming IDE. Please have a look in the simple code as below:
Code:
#!/usr/local/bin/python
from TKinter import *
class Application(Frame):
def __init__(self, master=None):
Frame.__init__(self,master)
self.grid()
self.createWidgets()
def createWidgets():
self.quitButton = Button(self, text='Quit', command=self.Quit)
self.quitButton.grid()
app = Application()
app.master.title('Sample Application')
app.mainloop()
I had python-tk, tcl and tk installed but still the above code is showing the error:
No Module Named TKinter.
Please help.
Bookmarks