client_tools package

Utilities for writing LabRAD clients.

TODO: Fully document these

client_tools.connection module

The shared connection object allows multiple asynchronous clients to share a single connection to the manager

TODO: Write full docs for this

class client_tools.connection.connection

Bases: object

__init__()
add_on_connect(server_name, action)
add_on_disconnect(server_name, action)
connect()
context()
followServerConnect(cntx, server_name)
followServerDisconnect(cntx, server_name)
get_server(server_name)
getcxn()
setupListeners()

client_tools.qt4reactor module

client_tools.widgets module

Some fancy PyQt4 widgets for numeric entry

TODO: Fully document this

class client_tools.widgets.IntSpinBox(*args: Any, **kwargs: Any)

Bases: QLineEdit

__init__(displayRange)
display(value, overwrite=False)
keyPressEvent(c)
step(up)

if we press the up (down) key, increment (decrement) the digit to the left of the cursor by one

value()
class client_tools.widgets.NeatSpinBox(*args: Any, **kwargs: Any)

Bases: QLineEdit

__init__()
display(value, overwrite=False)
keyPressEvent(c)
step(up)

if we press the up (down) key, increment (decrement) the digit to the left of the cursor by one

value()
class client_tools.widgets.SuperSpinBox(*args: Any, **kwargs: Any)

Bases: QLineEdit

__init__(display_range, units, num_decimals=1, significant_figures=3)
display(value)
format_number(value)

take a number and express it in most appropriate units

keyPressEvent(c)
step(up)

if we press the up (down) key, increment (decrement) the digit to the left of the cursor by one

value()