i m new in python coding. i got a problem while running my code.this is my code.
from Tkinter import *
def _init_(self, master):
self.lbl=Label(master, text="press button below to exit")
self.btn=Button(master, text="quit", command= quit)
import sys; sys.exit()
this is the error "TypeError: this constructor takes no arguments
please help me out.
12 Jul '12 - 19:19
12 Jul '12 - 19:40
It looks like the
__init__ method may not be overridden properly. You need two underscores before and after the word
init, not just one.
Also, from the indentation, it looks like the instance is being created from with it's own
__init__ method, or have you skipped some code somewhere?
More clarity, if possible please.
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)