Hi!
I'm writing a graph drawin program using OGL an run into some
problems:
a) I build my graph from nodes of the form
class Node(wxRectangleShape):
and connect them by
class Link(wxLineShape):
When I run through the graph by
for node in g.GetShapeList():
for link in node.GetLines():
(orig, dest) = (link.GetFrom(), link.GetTo())
orig and dest are no "Node"s, but "wxRectangleShape"s and I cannot
* compare them to other "Node"s
* acces "Node"'s methods
b) I don't understand when why and how I have to write __del__
methodes to prevent wxPython from reporting memory leaks.
I know that this happens when there are cyclic references, but I
didn't find any. Any tips how to proceed would be appreciated.
c) Is there a simple possibility to get my graph on a printer?
TIA
Felix Pütsch
···
--
http://puetsch.de.vu/
HE LEFT SIX CPU