wxpython + ogl

A

Andrzej

Hi!

I'm writing a simple digital circuit simulator in order to familirise with
(wx)python. I thought it would be an easy task with help from ogl lib. After
a not so brief encounter with wx specs I've started to code but I just can't
figure out how to get user-defined attachment points to work. I've tried to
call SetAttachmentMode(True) for shapes that should be connected and then:

dc = wx.ClientDC(self.canvas) # ->self.canvas = ogl.ShapeCanvas(self)
self.canvas.PrepareDC(dc)
shape1.MoveLineToNewAttachment(dc, line, x1, y1)

But the line pops up in random place and is changing it's position only
vertically when moving one of the shapes. I'm probably doing something
terribly wrong and I'd appreciate any help to solve my little problem .
Thanks in advance

Andrzej
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
474,266
Messages
2,571,318
Members
47,998
Latest member
GretaCjy4

Latest Threads

Top