By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
443,767 Members | 2,114 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 443,767 IT Pros & Developers. It's quick & easy.

wxpython + ogl

P: n/a
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
Aug 30 '05 #1
Share this question for a faster answer!
Share on Google+

This discussion thread is closed

Replies have been disabled for this discussion.