this is the code i have written ..even after changing d module name<br>i am still getting the same error...<br>what do they mean by an attribute error...can u explain in detail i am unable to <br>proceed further...<br><br>
#!usr/bin/env python<br>#making structured graphics using tkinter interface....<br><br>import tkinter<br><br><br>a = tkinter.Tk()                                      #initialize tkinter and g$<br>a.title("madhuri is a python")<br>
canvas = tkinter.Canvas(a)                            #creating the canvas unde$<br>canvas.pack()                                         #to call the packer geome$<br>canvas.create_rectangle(20,10,120,80,fill=colors[0])<br>
a.close()<br><br><br>and the error is ....<br><br>$ python madhu.py<br>Traceback (most recent call last):<br>  File "madhu.py", line 4, in <module><br>    import tkinter<br>  File "/home/manoj/tkinter.py", line 6, in <module><br>
    root = tkinter.Tk() #initialize tkinter and get a top level instance<br>AttributeError: 'module' object has no attribute 'Tk'<br><br><br>its a lil urgent please<br><br clear="all"><br>-- <br>madhuri :)<br>
<br>