Module gwy :: Class PlainTool
[hide private]
[frames] | no frames]

Class PlainTool

source code

Instance Methods [hide private]
 
set_selection_key(bname)
Constructs selection key from data key and sets it on the vector layer.
source code
 
log_add()
Logs a data modification operation of a plain tool.
source code
Method Details [hide private]

set_selection_key(bname)

source code 

Constructs selection key from data key and sets it on the vector layer.

This is a low-level function, normally you would use PlainTool.connect_selection().

Parameters:
  • bname - Selection key base name, for example "line". (string)
Returns:
The full key (as a layer-owned string). (string)

log_add()

source code 

Logs a data modification operation of a plain tool.

This is a convenience wrapper for gwy_app_channel_log_add(), setting automatically the container, data id and function name from the tool. It can only be used for simple data modification operations in which the source and target ids are the same. In more complex cases you have to use gwy_app_channel_log_add() directly.

Since: 2.35