[Tutor] (no subject)

Luke Paireepinart rabidpoobear at gmail.com
Wed Apr 28 06:06:08 CEST 2010


On Tue, Apr 27, 2010 at 10:12 PM, Marco Rompré <marcodrompre at gmail.com> wrote:
> Oups my posting was too big!!!
>
> On Tue, Apr 27, 2010 at 11:04 PM, Marco Rompré <marcodrompre at gmail.com>
> wrote:
>>
>> Why is none of my items button works???? In this, I have two files and in
>> my second file I imported all the function of the first one
>>
>> Here is my codes and my error code  for the two files please help me:
>> Traceback (most recent call last):
>>
>>
>>   File "F:\School\University\Session 4\Programmation
>> SIO\magasingolfvues.py", line 426, in <module>
>>     app = App(racine, "magasinmodele.txt")
>>   File "F:\School\University\Session 4\Programmation
>> SIO\magasingolfvues.py", line 23, in __init__
>>     ItemsFrame(contexte, item)
>> NameError: global name 'item' is not defined
>> >>>
>>
>>[snip lots of code]


You're not going to get a very good reply with a post like this.
First of all, it's homework, so we aren't going to give you answers
(not that we would anyway).
Secondly, if you have a problem, you need to clearly specify what the
problem is, and clearly outline what you did to try to solve it, and
why you think that didn't work, and some general indication that you
are trying things.
We're not here to just give people answers, we're here to help you
when you get stuck learning on your own.
It's much more rewarding in the end, trust me.

Also why do you think the problem you're having is your "items button
[doesn't] work" when it's pretty clear from the traceback that your
code crashes due to trying to access a variable that doesn't exist?

-Luke


More information about the Tutor mailing list