You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
(py-cocos) E:\dev\cocos2019\test>python _pyglet_html_label.py
Traceback (most recent call last):
File "_pyglet_html_label.py", line 29, in <module>
pyglet.app.run()
File "e:\dev\pyglet-2019\pyglet\app\__init__.py", line 144, in run
event_loop.run()
File "e:\dev\pyglet-2019\pyglet\app\base.py", line 175, in run
self._run()
File "e:\dev\pyglet-2019\pyglet\app\base.py", line 187, in _run
timeout = self.idle()
File "e:\dev\pyglet-2019\pyglet\app\base.py", line 308, in idle
redraw_all = self.clock.call_scheduled_functions(dt)
File "e:\dev\pyglet-2019\pyglet\clock.py", line 327, in call_scheduled_functio
ns
item.func(now - item.last_ts, *item.args, **item.kwargs)
File "_pyglet_html_label.py", line 25, in update
hlabel.color = tuple(color[:3]) + (opacity,)
File "e:\dev\pyglet-2019\pyglet\text\__init__.py", line 309, in color
{'color': color})
File "e:\dev\pyglet-2019\pyglet\text\document.py", line 512, in set_style
self.dispatch_event('on_style_text', start, end, attributes)
File "e:\dev\pyglet-2019\pyglet\event.py", line 400, in dispatch_event
if handler(*args):
File "e:\dev\pyglet-2019\pyglet\text\layout.py", line 1062, in on_style_text
self._update_color()
File "e:\dev\pyglet-2019\pyglet\text\layout.py", line 977, in _update_color
for start, end, color in colors_iter.ranges(0, colors_iter.length):
AttributeError: 'RunIterator' object has no attribute 'length'
win7 64.bits, python 3.7
pyglet:
commit 58dfdb6 master github
Author: Benjamin Moran
Date: Fri Aug 9 09:43:50 2019 +0900
Glad to help, and thanks for reporting it. I just pushed out 1.4.2 this morning. Unfortunately this fix did not go in, but we need to do another release soon anyway. There are a few bugs to solve first :)
with this pure pyglet script
got crash with traceback
win7 64.bits, python 3.7
pyglet:
commit 58dfdb6 master github
Author: Benjamin Moran
Date: Fri Aug 9 09:43:50 2019 +0900
found this while testing cocos for next release, los-cocos/cocos#322
edit1: deleted reference to cocos version, irrelevant to this bugdemo.
The text was updated successfully, but these errors were encountered: