On Mon, May 19, 2008 at 7:03 PM, Alex Holkner <[EMAIL PROTECTED]> wrote:
> On 5/20/08, Nathan <[EMAIL PROTECTED]> wrote:
>>
>>  On Mon, May 19, 2008 at 3:07 PM, Nathan <[EMAIL PROTECTED]> wrote:
>>  > I decided to start with an example from scratch and build up from
>>  > there, and it appears that I must be misunderstanding something very
>>  > essential, as my very first attempt at using an IncrementalTextLayout
>>  > fails.
>>
>>
>> To clarify, I don't get a crash, I just get an unchanging black screen.
>
> Just something like:
>
> incr_layout.document.set_style(0, len(incr_layout.document.text),
>    {'color': (255, 255, 255, 255)})

Awesome.  On to the next hurdle...  In my production code I get an
error which I can't seem to reproduce.  Can you tell what I ought to
be looking for from this traceback?  In the meantime, I'll continue to
try to duplicate the error in test code...

[snip]
  File "/sm/engine/modules/widgets.py", line 221, in draw
    self.log_layout.draw()
  File "/Library/Python/2.5/site-packages/pyglet/text/layout.py", line
778, in draw
    self.batch.draw()
  File "/Library/Python/2.5/site-packages/pyglet/graphics/__init__.py",
line 532, in draw
    func()
  File "/Library/Python/2.5/site-packages/pyglet/text/layout.py", line
510, in set_state
    self._scissor_height)
ctypes.ArgumentError: argument 1: <type 'exceptions.TypeError'>: wrong type

It occurs when I try to change the .x and .y on the incremental text
layout object (outside of begin_update(), end_update() -- if that
makes any difference).

~ Nathan

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"pyglet-users" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/pyglet-users?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to