VrOne/Python Programming
|
ON-LINE REFERENCE DOCUMENTATION CARDINAL SYSTEMS, LLC 386-439-2525 |
Python VrMenuKeys Class More...
This class is used to display a standard
menu keys dialog. The dialog can be customized, and a callback function can be
used to respond to the user pressing buttons on the menu keys dialog. This
class can be used along with the PyVrApp class to create full event-driven
applications in VrOne.
Sets title of dialog box.
|
Title |
Title string. |
Set a label on a single menu key
button.
|
KeyNum |
Button number to label (1-12) |
|
Label |
Label string. |
Enable a single menu key button.
|
KeyNum |
Button number (1-12) |
Disable a single menu key button.
|
KeyNum |
Button number (1-12) |
Set all menu key button labels.
|
Title |
Set dialog title. |
|
Key1 |
Label for key 1 |
|
Key2 |
Label for key 2 |
|
Key3 |
Label for key 3 |
|
Key4 |
Label for key 4 |
|
Key5 |
Label for key 5 |
|
Key6 |
Label for key 6 |
|
Key7 |
Label for key 7 |
|
Key8 |
Label for key 8 |
|
Key9 |
Label for key 9 |
|
Key10 |
Label for key 10 |
|
Key0 |
Label for key 11 |
|
Key11 |
Label for key 12 |
Saves menu key labels onto a
stack. May be called multiple times. Use PopMk to restore menu keys that have
been stored using PushMk.
Restores last menu keys labels
that were stored using PushMk.
Set a single line label at top of
Menu Keys dialog.
|
LineNum |
Line number of label. |
|
Label |
Label string |
Set a single line label at top of
Menu Keys dialog in a keyword-argument format using a short argument.
|
LineNum |
Line number of label. |
|
Keyword |
Keyword string. |
|
Arg |
Argument value. |
Set a single line label at top of
Menu Keys dialog in a keyword-argument format using an int argument.
|
LineNum |
Line number of label. |
|
Keyword |
Keyword string. |
|
Arg |
Argument value. |
|
LineNum |
Line number of label. |
|
Keyword |
Keyword string. |
|
Arg |
Argument value. |
|
DecAccur |
Decimal accuracy of Arg |
|
LineNum |
Line number of label. |
|
Keyword |
Keyword string. |
|
Arg |
Argument string. |
Sets a line of text in the
Information Area using and index and a list of possible strings for that index.
|
LineNum |
Information Area line number.
(0-NumLabels-1) |
|
Keyword |
Keyword (i.e LAYMOD) |
|
Index |
Index to list of strings |
|
Lab0,... |
Possible string items for Index |
Clear information area labels.
Hide menu keys dialog.
Show menu keys dialog.
Raise menu keys dialog to top of
other dialogs.
Show information about a VrLne in
the information area.
|
Line |
VrLine object |
Show point count information about
a VrLne in the information area.
|
Line |
VrLine object |
Show point number and point count
information in the information area.
|
PntNum |
Current point number. |
|
Line |
VrLine object |
|
PntCnt |
Total point count. |
Show point flags information about
a VrLne in the information area.
|
PntNum |
Current point number. |
|
Line |
VrLine object. |
Show information about a VrSymbol
in the information area.
|
Sym |
VrSym object |
Show information about a VrText in
the information area.
|
Text |
VrText object |
Show justication information about
a VrText in the information area.
|
Text |
VrText object |
Show workspace number in the
information area.
|
Ws |
Workspace number |
Show entity number the information
area.
|
EntNum |
Entity number |
|
EntType |
Entity type 1=Line 2=Splined
line 3=Symbol 4=Text (optional) |
Set Python callback function to be
called when a menu key is pressed.
|
Function |
Python function to handle menu
key events. This is a function that you must create in your Python script.
The function should have the following format: 'def MyAppKeyCB (key):' |