help me

Chris Rebert clp2 at rebertia.com
Wed Jun 9 03:26:56 EDT 2010


On Wed, Jun 9, 2010 at 12:18 AM, madhuri vio <madhuri.vio at gmail.com> wrote:
> this is the code i have written ..even after changing d module name
> i am still getting the same error...

You still haven't renamed /home/manoj/tkinter.py to something else.
Otherwise it wouldn't still be mentioned in the error traceback!
I suspect you've renamed the wrong module.

<snip>
> $ python madhu.py
> Traceback (most recent call last):
>   File "madhu.py", line 4, in <module>
>     import tkinter
>   File "/home/manoj/tkinter.py", line 6, in <module>
>     root = tkinter.Tk() #initialize tkinter and get a top level instance
> AttributeError: 'module' object has no attribute 'Tk'
>
>
> its a lil urgent please

http://www.catb.org/~esr/faqs/smart-questions.html#urgent
"""
==Don't flag your question as “Urgent”, even if it is for you==

That's your problem, not ours. Claiming urgency is very likely to be
counter-productive: most hackers will simply delete such messages as
rude and selfish attempts to elicit immediate and special attention.

There is one semi-exception. It can be worth mentioning if you're
using the program in some high-profile place, one that the hackers
will get excited about; in such a case, if you're under time pressure,
and you say so politely, people may get interested enough to answer
faster.

This is a very risky thing to do, however, because the hackers' metric
for what is exciting probably differs from yours. Posting from the
International Space Station would qualify, for example, but posting on
behalf of a feel-good charitable or political cause would almost
certainly not. In fact, posting “Urgent: Help me save the fuzzy baby
seals!” will reliably get you shunned or flamed even by hackers who
think fuzzy baby seals are important.
"""

Regards,
Chris
--
I should stop procrastinating by answering these...
http://blog.rebertia.com



More information about the Python-list mailing list