On 10.04.2005 23:43, Paolo Bernardi wrote:
Hi to all,

I'm playing around DIA and its python plugin.
I noticed that some properties was read-only
(like operations/attributes in UMLClass) so I wanted
to try to hack this (after a try into the latest
sources).

Done.

It would probably best to create a bug attaching the patch
(diff -u) in bugzilla _or_ send the patch including just
this to the list.

Now I find another problem.
My Python program:
- makes a new diagram
- add some UML objects and relations (got by collecting data from other diagrams)
- do the layout (using graphviz), but:
...moving objects around the display
do not refresh relations.


The only thing that makes relations to be visible is
selecting (with the mouse) all the objects and move,
then relations are updated and become visible.

I guess there is no way to work-around from Python.
Any idea?


Doesn't data.update_extents () diagram.flush() do the trick?

For info: I'm working on a small-small CASE for my own
(it's not a "real" project, but a personal experimentation).

I don't know "how things go" inside a project like DIA,
but if someone is interested on the patch that implements
the python-to-C attributes and operations I will be honored
to share the code.

Please do - as described above.

Thanks,
        Hans

-------- Hans "at" Breuer "dot" Org -----------
Tell me what you need, and I'll tell you how to
get along without it.                -- Dilbert
_______________________________________________
Dia-list mailing list
[email protected]
http://mail.gnome.org/mailman/listinfo/dia-list
FAQ at http://www.gnome.org/projects/dia/faq.html
Main page at http://www.gnome.org/projects/dia



Reply via email to