def _select_top_object():
    objects = ifaint.get_objects()
    if len(objects) > 0:
        ifaint.tool(0)
        ifaint.set_layer(1)
        i = ifaint.get_active_image()
        i.select(objects[-1])
def _toggle_selection_type():
    """Toggles between raster and object selection"""
    if ifaint.tool() == 0:
        ifaint.set_layer(1 - ifaint.get_layer())
    else:
        ifaint.tool_selection()
예제 #3
0
def _toggle_selection_type():
    """Toggles between raster and object selection"""
    ifaint.tool(_other_selection())
예제 #4
0
def _other_selection():
    if ifaint.tool() == 0:
        return 1
    return 0