Draw an XOR line in the editor view.
Parameters: |
|
---|
Initialise a mouse dragging loop.
Parameters: |
|
---|
Check for the mouse drag status.:
result, mx, my, channels = win.MouseDrag()
Return type: |
tuple |
||||||
---|---|---|---|---|---|---|---|
Returns: |
See example above. |
||||||
Parameters: |
|
Get the status of an input device such as the mouse from the event queue if present.
Parameters: |
askdevice (int) –
The devices
|
||||
---|---|---|---|---|---|
Return type: | BaseContainer | ||||
Returns: | The container state or None if failed. |
Get the status of an input device such as the mouse from the event queue if present.
Parameters: |
|
||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
Return type: | |||||||||||||||||||
Returns: |
The container state or None if failed. |
Check why the mouse drag ended. This enabled you to perform any undo operations needed if the user cancelled the drag.
Return type: | int | ||||||
---|---|---|---|---|---|---|---|
Returns: |
The results.
|
Transforms screen coordinates (relative to the top left corner of the system screen) to local coordinates (relative to the top left corner of the user area):
x, y = win.Screen2Local()
Parameters: |
|
---|---|
Raises RuntimeError: | |
If the coordinates cannot be transformed. |
Transforms local coordinates (relative to the top left corner of the user area) to screen coordinates (relative to the top left corner of the system screen):
x, y = win.Local2Screen()
Parameters: |
|
---|---|
Raises RuntimeError: | |
If the coordinates cannot be transformed. |
Transforms global window coordinates (relative to the top left corner of the application window) to local coordinates (relative to the top left corner of the user area):
x, y = win.Global2Local()
Parameters: |
|
---|---|
Raises RuntimeError: | |
If the coordinates cannot be transformed. |
Transforms local coordinates (relative to the top left corner of the user area) to global window coordinates (relative to the top left corner of the application window):
x, y = win.Local2Global()
Parameters: |
|
---|---|
Raises RuntimeError: | |
If the coordinates cannot be transformed. |