Hi Richard,

I don't have curve, right  now. (BTW, I just update from svn and
didn't find examples/svg_test.py )

But point, line, circle, arc and polygon are working nicely, with
support to many atributes such as color, rotation, stroke type, style,
etc)

My module is done and working pretty well, if anyone is interested. I
have do some clean up though. Once I finish cleaning up I intend to
implement some 3D primitives as well (Sphere, Cube, etc)

I noticed that you have commited clipboard/xlib.py.  Now I can run the
tests on wydget. but it is still crashing on slider, with the
following traceback:

Running test_slider.xml
Traceback (most recent call last):
  File "run_tests.py", line 243, in <module>
    if run(os.path.join('tests', file)): break
  File "run_tests.py", line 208, in run
    window.dispatch_events()
  File "../../pyglet/window/xlib/__init__.py", line 977, in
dispatch_events
    EventDispatcher.dispatch_event(self, *self._event_queue.pop(0))
  File "../../pyglet/event.py", line 268, in dispatch_event
    ret = handler(*args)
  File "/home/Downloads/pyglet/contrib/wydget/wydget/event.py", line
343, in on_resize
    self.layout()
  File "/home/Downloads/pyglet/contrib/wydget/wydget/__init__.py",
line 180, in layout
    ok = ok and element.resize()
  File "/home/Downloads/pyglet/contrib/wydget/wydget/widgets/
frame.py", line 32, in resize
    c.resize()
  File "/home/Downloads/pyglet/contrib/wydget/wydget/widgets/
frame.py", line 32, in resize
    c.resize()
  File "/home/Downloads/pyglet/contrib/wydget/wydget/widgets/
slider.py", line 15, in resize
    if ok: self.handleSizing()
  File "/home/Downloads/pyglet/contrib/wydget/wydget/widgets/
slider.py", line 195, in handleSizing
    self.rbut = ArrowButtonRight(self, x=self.width-bw, color='black',
TypeError: unsupported operand type(s) for -: 'NoneType' and 'int'

I hope this helps!

cheers!

On Oct 3, 8:04 pm, Richard Jones <[EMAIL PROTECTED]> wrote:
> On Thu, 4 Oct 2007, fccoelho wrote:
> > I am implementing 2D drawing primitives (point, line, circle,
> > arc,polygon) using pyglet.gl. Is this already done somewhere in the
> > codebase or is there someone already doing this?
>
> The only thing I've implemented is curve and line drawing based on SVG
> specification. See examples/svg_test.py
>
>     Richard


--~--~---------~--~----~------------~-------~--~----~
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