Module pyinsim :: Class IS_BTN
[hide private]
[frames] | no frames]

Class IS_BTN

source code

BuTtoN - button header - followed by 0 to 240 characters

Instance Methods [hide private]
 
__init__(self, ReqI=0, UCID=0, ClickID=0, Inst=0, BStyle=0, TypeIn=0, L=0, T=0, W=0, H=0, Text='')
Initialise the packet.
source code
string
pack(self)
Pack the packet values into a binary formatted string.
source code
 
unpack(self, data)
Unpack the packet data from a binary formatted string.
source code
Method Details [hide private]

__init__(self, ReqI=0, UCID=0, ClickID=0, Inst=0, BStyle=0, TypeIn=0, L=0, T=0, W=0, H=0, Text='')
(Constructor)

source code 

Initialise the packet.

Parameters:
  • ReqI - non-zero (returned in IS_BTC and IS_BTT packets)
  • UCID - connection to display the button (0 = local / 255 = all)
  • ClickID - button ID (0 to 239)
  • Inst - some extra flags from INST_
  • BStyle - button style flags from ISB_
  • TypeIn - max chars to type in
  • L - left: 0 - 200
  • T - top: 0 - 200
  • W - width: 0 - 200
  • H - height: 0 - 200
  • Text - 0 to 240 characters of text

pack(self)

source code 

Pack the packet values into a binary formatted string.

Returns: string
A binary formatted string.

unpack(self, data)

source code 

Unpack the packet data from a binary formatted string.

Parameters:
  • data (string) - The packet data as a binary formatted string.