Help: How can you programmatically delete a line and update a table connected to it?
- From: Bao Niu <niubao56 gmail com>
- To: discussions about usage and development of dia <dia-list gnome org>
- Subject: Help: How can you programmatically delete a line and update a table connected to it?
- Date: Fri, 27 Sep 2013 04:23:57 -0700
Problem: I have a
"Database -- Table" on screen, and then added a "Standard - BezierLine" connecting to one of the table's connection point. Now I want to delete that line and make the table's connection point pt.connected fresh.
I use python's API to disconnect this two objects programmatically. When using layer.remove(BezierLine), and then update_connections(table), the connection is still there. If you type connection_pt.connected, you can see that "Standard - BezierLine" object is still in the returned tuple. This is very weird.
The only way I can disconnect the two seems to be manually delete the BezierLine from the screen. There is no way to do this programmatically.
Could anybody give some advice? Many thanks.
[
Date Prev][Date Next] [
Thread Prev][Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]