Changing the cursor

Changing the cursor
 1# set the cursor to be a wait cursor
 2impact.gui.cursor = ipCursor.csrWait
 3
 4# create a local variable for the active block
 5ab = impact.active_drawing.active_layer.active_block
 6
 7# carry out some operation which takes a long time during which the wait cursor is displayed
 8for i in range(0, 1000  + 1):
 9    ab.move_ad(i, 0)
10    offset = impact.creator.vector(100,100)
11    ab.line(offset)
12
13# set the cursor back to the default now the operation has finished
14impact.gui.cursor = ipCursor.csrDefault