(LOGO.JPG) Python for OpenVMS

(go to: table of contents, index, list of vms_smg, prev: PREV, next: GET_PASTING_INFO)


GET_PASTEBOARD_ATTRIBUTES - Get Pasteboard Attributes

Gets pasteboard attributes and store them in the pasteboard information table.

Format:

    pasteboard_info_table = \
        vms_smg.get_pasteboard_attributes (pasteboard_id)
Returns:
pasteboard_info_table
The pasteboard attributes. This is a dictionary - see the examples section and the 'OpenVMS RTL Screen Management (SMG$) Manual' for details.
Arguments:
pasteboard_id
The pasteboard from which to get the attributes.
Examples:
>>> import vms_smg
>>> import vms_smgdef

>>> # create a new DECwindows terminal using SMG
>>> status,                       \
... pasteboard_id,                \
... number_of_pasteboard_rows,    \
... number_of_pasteboard_columns, \
... type_of_terminal,             \
... device_name                   \
... = vms_smg.create_pasteboard   \
...   (None, vms_smgdef.SMG_M_WORKSTATION)
>>>

>>> # get information about pasteboard
>>> pasteboard_info_table = \
...     vms_smg.get_pasteboard_attributes (pasteboard_id)
>>>
>>> for key_name in pasteboard_info_table.keys():
...   print "%17s : %s" % (key_name, pasteboard_info_table[key_name])
...
          W_SPEED : 15        # TT$C_BAUD_9600
     L_CURSOR_DID : 0         # no virtual display
         B_PARITY : 24        # ?
          W_WIDTH : 80        # 80 columns wide
       B_DEVCLASS : 66        # DC$_TERM ($DCDEF)
           W_FILL : 0         # no fill characters 
        L_DEVCHAR : 5271618
    B_PHY_DEVTYPE : 112       # TT$_VT300_Series ($TTDEF)
    B_SMG_DEVTYPE : 6         # SMG_K_VTTERMTABLE
W_PHYS_CURSOR_ROW : 1         # upper left-most
W_PHYS_CURSOR_COL : 1         #   corner
          B_COLOR : 0         # SMG_C_COLOR_UNKNOWN
           B_ROWS : 24        # height
      L_DEVDEPEND : 402690992
     L_DEVDEPEND2 : -78639104
>>>

(go to: table of contents, index, list of vms_smg, prev: PREV, next: GET_PASTING_INFO)

10-SEP-2000 ZE.