Hey Chris, 

I took a look at your code, and got it working. All I did was to remove the 
"self.window.clear()" call from the bottom of your HUD.draw method. It 
looks like you were accidentally clearing the screen after you just got 
done drawing the text. 

As a bit of feedback, I'd have a read over the documentation for the pyglet 
clock module, and event system. I think you can likely save yourself a bit 
of work in the long run. 


On Friday, December 9, 2016 at 6:55:09 PM UTC+9, Chris Norman wrote:
>
> Haha, sorry, I completely forgot about that dependency. 
>
> Try pip install attrs 
>
> On 9 December 2016 6:04:06 am claudio canepa <[email protected] 
> <javascript:>> wrote:
>
>> The script ends in a traceback:
>>
>> Traceback (most recent call last):
>>     File "pyglet_text.py", line 3, in <module>
>>       from attr import attrs, attrib, Factory
>> ImportError: cannot import name 'attrs'
>>
>> There is a module attr in pypi, but it does not have those symbols
>>
>> So you need to post a link to that module / package.
>>
>> Aside: if you need to post a script to run, it is better to paste the 
>> code in a pastebin, by example at http://pastebin.com/ , and then post 
>> the link.
>>
>> If not too long, a file with the code can be attached to your mail.
>>
>> Bot methods will preserve indentation and avoid some other problems.
>>
>>  
>>
>>  
>>
>> -- 
>> You received this message because you are subscribed to the Google Groups 
>> "pyglet-users" group.
>> To unsubscribe from this group and stop receiving emails from it, send an 
>> email to [email protected] <javascript:>.
>> To post to this group, send email to [email protected] 
>> <javascript:>.
>> Visit this group at https://groups.google.com/group/pyglet-users.
>> For more options, visit https://groups.google.com/d/optout.
>>
>

-- 
You received this message because you are subscribed to the Google Groups 
"pyglet-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at https://groups.google.com/group/pyglet-users.
For more options, visit https://groups.google.com/d/optout.

Reply via email to