Re: Events in Dia
- From: Hans Breuer <hans breuer org>
- To: discussions about usage and development of dia <dia-list gnome org>
- Subject: Re: Events in Dia
- Date: Sun, 02 Mar 2014 21:19:32 +0100
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
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]