Drawing connectors between two buttons
Jarno Väyrynen
javayryn at mail.student.oulu.fi
Tue Sep 4 03:09:11 PDT 2007
Hi all,
I have been working on a tool that has three columns of buttons. These buttons
visualize interdependencies, which are based on xml data. I have now managed to
draw the buttons and process the interdependency data appropriately, but I have
no idea how then to connect two buttons to each other i.e. draw a line between
them. Is there a way to directly connect two buttons, or do you always have to
parse their coordinates?
I have studied material about wxDc, wxBufferedPaintDC and so on, but I still
haven't managed to use them, even though I have a working example in
wxPython2.8 Docs and Demos.
Are there some limitations on what surface one can draw lines? Can I draw on a
normal wx.Frame? Currently those 3 columns of buttons are each in a separate
wx.Panel that have been added to horizontal box sizer.
Any help to right direction would be greatly appreciated,
best,
Jarno
More information about the wxpython-users
mailing list