Re: Events in Dia



Thanks Hans.
Not very promising but I'll see what I can do.


On Sunday, 2 March 2014, Hans Breuer <hans breuer org> wrote:
At 28.02.2014 20:53, Bernard Cohen wrote:
I wrote an large extension to Visio in VBA in which the code is triggered
by events, such as placing an object or connecting a line to a connector,
and by custom menu items.
I'd like to transport it to Dia/Python but can find no documentation on the
events that Dia generates.
You can generate PyDia documentation by Help/PyDia HTML Docs,
which creates dia.html in the temp directory.

Can you point me to an appropriate URL?
THe list of events (signals) supported by PyDia is rather short, so I#m pasting the answer here:

DiagramData::connect_after(...)
    connect_after(string: signal_name, Callback: func) -> None.
    Listen to diagram events in ['object_add', 'object_remove'].
Diagram::connect_after(...)
    connect_after(string: signal_name, Callback: func) -> None.
    Listen to diagram events in ['removed', 'selection_changed'].

HTH,
        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
dia-list gnome org
https://mail.gnome.org/mailman/listinfo/dia-list
FAQ at http://live.gnome.org/Dia/Faq
Main page at http://live.gnome.org/Dia



--
Professor Emeritus
City University London
www.soi.city.ac.uk/~bernie
www.asymmetricdesign.com
'Patterns lively of the things rehearsed' John Dee


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]