def __init__(self): # create local variables self.guiLock = threading.Lock() self.lastNotifLock = threading.Lock() self.lastNotif = None self.apiDef = None self.connector = None # create window self.window = dustWindow.dustWindow( 'APIExplorer', self._windowCb_close) # fill window with frames self.apiFrame = dustFrameApi.dustFrameApi( self.window, self.guiLock, self._apiFrameCb_apiLoaded, row=0,column=0) self.connectionFrame = dustFrameConnection.dustFrameConnection( self.window, self.guiLock, self._connectionFrameCb_connected, row=1,column=0) self.commandFrame = dustFrameCommand.dustFrameCommand( self.window, self.guiLock, self._commandFrameCb_selected, self._commandFrameCb_response, self._commandFrameCb_responseError, row=2,column=0) self.responseFrame = dustFrameResponse.dustFrameResponse( self.window, self.guiLock, row=3,column=0) self.notifFrame = dustFrameNotifications.dustFrameNotifications( self._getLastNotif, self.window, self.guiLock, row=4,column=0) self.toolTipFrame = dustFrameText.dustFrameText( self.window, self.guiLock, frameName="tooltip", row=5,column=0) # choose the frames to show when app starts self.apiFrame.show()
def __init__(self): # create local variables self.guiLock = threading.Lock() self.lastNotifLock = threading.Lock() self.lastNotif = None self.apiDef = None self.connector = None # create window self.window = dustWindow.dustWindow('APIExplorer', self._windowCb_close) # fill window with frames self.apiFrame = dustFrameApi.dustFrameApi(self.window, self.guiLock, self._apiFrameCb_apiLoaded, row=0, column=0) self.connectionFrame = dustFrameConnection.dustFrameConnection( self.window, self.guiLock, self._connectionFrameCb_connected, row=1, column=0) self.commandFrame = dustFrameCommand.dustFrameCommand( self.window, self.guiLock, self._commandFrameCb_selected, self._commandFrameCb_response, self._commandFrameCb_responseError, row=2, column=0) self.responseFrame = dustFrameResponse.dustFrameResponse(self.window, self.guiLock, row=3, column=0) self.notifFrame = dustFrameNotifications.dustFrameNotifications( self._getLastNotif, self.window, self.guiLock, row=4, column=0) self.toolTipFrame = dustFrameText.dustFrameText(self.window, self.guiLock, frameName="tooltip", row=5, column=0) # choose the frames to show when app starts self.apiFrame.show()
def __init__(self): # log log.debug("Creating PkGenGui") # local variables self.guiLock = threading.Lock() self.apiDef = IpMgrDefinition.IpMgrDefinition() self.notifClientHandler = None self.guiUpdaters = 0 self.oap_clients = {} # create window self.window = dustWindow.dustWindow('PkGen', self._windowCb_close) # add a API selection frame self.apiFrame = dustFrameApi.dustFrameApi( self.window, self.guiLock, self._apiFrameCb_apiLoaded, row=0, column=0, deviceType=dustFrameApi.dustFrameApi.MANAGER) self.apiFrame.show() # add a connection frame self.connectionFrame = dustFrameConnection.dustFrameConnection( self.window, self.guiLock, self._connectionFrameCb_connected, frameName="manager connection", row=1, column=0) # add a mote list frame columnnames = [ # PkGen { 'name': COL_PKGEN_NUM, 'type': dustFrameMoteList.dustFrameMoteList.LABEL, }, { 'name': COL_PKGEN_PPS, 'type': dustFrameMoteList.dustFrameMoteList.LABEL, }, { 'name': COL_PKGEN_CLR, 'type': dustFrameMoteList.dustFrameMoteList.ACTION, }, { 'name': COL_PKGEN_RATE, 'type': dustFrameMoteList.dustFrameMoteList.SETTHREEVAL, }, ] self.moteListFrame = dustFrameMoteList.dustFrameMoteList(self.window, self.guiLock, columnnames, row=2, column=0) self.moteListFrame.show() # add a status (text) frame self.statusFrame = dustFrameText.dustFrameText(self.window, self.guiLock, frameName="status", row=3, column=0) self.statusFrame.show()
def __init__(self): # create local variables self.guiLock = threading.Lock() self.lastNotifLock = threading.Lock() self.lastNotif = None self.apiDef = None self.connector = None # create window self.window = dustWindow.dustWindow( appName = 'APIExplorer', closeCb = self._windowCb_close, ) # fill window with frames self.apiFrame = dustFrameApi.dustFrameApi( parentElem = self.window, guiLock = self.guiLock, cbApiLoaded = self._apiFrameCb_apiLoaded, row = 0, column = 0, ) # create API frame object self.connectionFrame = dustFrameConnection.dustFrameConnection( parentElem = self.window, guiLock = self.guiLock, connectCb = self._connectionFrameCb_connected, row = 1, column = 0, ) # create connection frame object self.commandFrame = dustFrameCommand.dustFrameCommand( parentElem = self.window, guiLock = self.guiLock, selectedCb = self._commandFrameCb_selected, responseCb = self._commandFrameCb_response, responseErrorCb = self._commandFrameCb_responseError, row = 2, column = 0, ) # create command frame object self.responseFrame = dustFrameResponse.dustFrameResponse( parentElem = self.window, guiLock = self.guiLock, row = 3, column = 0, ) self.notifFrame = dustFrameNotifications.dustFrameNotifications( getNotifCb = self._getLastNotif, parentElem = self.window, guiLock = self.guiLock, row = 4, column = 0, ) self.toolTipFrame = dustFrameText.dustFrameText( parentElem = self.window, guiLock = self.guiLock, frameName = "tooltip", row = 5, column = 0, ) # choose the frames to show when app starts self.apiFrame.show()
def __init__(self): # local variables self.guiLock = threading.Lock() self.apiDef = IpMgrDefinition.IpMgrDefinition() self.notifClientHandler = None self.latencyCalculator = None self.guiUpdaters = 0 self.oap_clients = {} # create window self.window = dustWindow.dustWindow('Heliostat', self._windowCb_close) # add a API selection frame self.apiFrame = dustFrameApi.dustFrameApi( self.window, self.guiLock, self._apiFrameCb_apiLoaded, row=0, column=0, deviceType=dustFrameApi.dustFrameApi.MANAGER) self.apiFrame.show() # add a connection frame self.connectionFrame = dustFrameConnection.dustFrameConnection( self.window, self.guiLock, self._connectionFrameCb_connected, frameName="manager connection", row=1, column=0) # add a mote list frame columnnames = [ # led { 'name': COL_LED, 'type': dustFrameMoteList.dustFrameMoteList.ACTION, }, # counters and latency { 'name': COL_NOTIF_DATA, 'type': dustFrameMoteList.dustFrameMoteList.LABEL, }, { 'name': COL_NOTIF_IPDATA, 'type': dustFrameMoteList.dustFrameMoteList.LABEL, }, { 'name': COL_NOTIF_HR, 'type': dustFrameMoteList.dustFrameMoteList.LABEL, }, { 'name': COL_LAT_MIN, 'type': dustFrameMoteList.dustFrameMoteList.LABEL, }, { 'name': COL_LAT_CUR, 'type': dustFrameMoteList.dustFrameMoteList.LABEL, }, { 'name': COL_LAT_MAX, 'type': dustFrameMoteList.dustFrameMoteList.LABEL, }, { 'name': COL_NOTIF_CLR, 'type': dustFrameMoteList.dustFrameMoteList.ACTION, }, # temperature { 'name': COL_TEMPERATURE, 'type': dustFrameMoteList.dustFrameMoteList.LABEL, }, { 'name': COL_TEMP_NUM, 'type': dustFrameMoteList.dustFrameMoteList.LABEL, }, { 'name': COL_TEMP_CLR, 'type': dustFrameMoteList.dustFrameMoteList.ACTION, }, { 'name': COL_TEMP_RATE, 'type': dustFrameMoteList.dustFrameMoteList.GETSETONEVAL, }, # control and latency { 'name': COL_ACTION1, 'type': dustFrameMoteList.dustFrameMoteList.ACTION, }, ] self.moteListFrame = dustFrameMoteList.dustFrameMoteList(self.window, self.guiLock, columnnames, row=2, column=0) self.moteListFrame.show() # add a status (text) frame self.statusFrame = dustFrameText.dustFrameText(self.window, self.guiLock, frameName="status", row=3, column=0) self.statusFrame.show()
def __init__(self): # local variables self.guiLock = threading.Lock() self.apiDef = IpMgrDefinition.IpMgrDefinition() self.notifClientHandler = None self.latencyCalculator = None self.guiUpdaters = 0 self.oap_clients = {} # create window self.window = dustWindow.dustWindow('TempMonitor', self._windowCb_close) # add a API selection frame self.apiFrame = dustFrameApi.dustFrameApi( self.window, self.guiLock, self._apiFrameCb_apiLoaded, row=0,column=0, deviceType=dustFrameApi.dustFrameApi.MANAGER) self.apiFrame.show() # add a connection frame self.connectionFrame = dustFrameConnection.dustFrameConnection( self.window, self.guiLock, self._connectionFrameCb_connected, frameName="manager connection", row=1,column=0) # add a mote list frame columnnames = [ # led { 'name': COL_LED, 'type': dustFrameMoteList.dustFrameMoteList.ACTION, }, # counters and latency { 'name': COL_NOTIF_DATA, 'type': dustFrameMoteList.dustFrameMoteList.LABEL, }, { 'name': COL_NOTIF_IPDATA, 'type': dustFrameMoteList.dustFrameMoteList.LABEL, }, { 'name': COL_NOTIF_HR, 'type': dustFrameMoteList.dustFrameMoteList.LABEL, }, { 'name': COL_LAT_MIN, 'type': dustFrameMoteList.dustFrameMoteList.LABEL, }, { 'name': COL_LAT_CUR, 'type': dustFrameMoteList.dustFrameMoteList.LABEL, }, { 'name': COL_LAT_MAX, 'type': dustFrameMoteList.dustFrameMoteList.LABEL, }, { 'name': COL_NOTIF_CLR, 'type': dustFrameMoteList.dustFrameMoteList.ACTION, }, # temperature { 'name': COL_TEMPERATURE, 'type': dustFrameMoteList.dustFrameMoteList.LABEL, }, { 'name': COL_TEMP_NUM, 'type': dustFrameMoteList.dustFrameMoteList.LABEL, }, { 'name': COL_TEMP_CLR, 'type': dustFrameMoteList.dustFrameMoteList.ACTION, }, { 'name': COL_TEMP_RATE, 'type': dustFrameMoteList.dustFrameMoteList.GETSETONEVAL, }, ] self.moteListFrame = dustFrameMoteList.dustFrameMoteList(self.window, self.guiLock, columnnames, row=2,column=0) self.moteListFrame.show() # add a status (text) frame self.statusFrame = dustFrameText.dustFrameText( self.window, self.guiLock, frameName="status", row=3,column=0) self.statusFrame.show()
def __init__(self): # log log.debug("Creating PkGenGui") # local variables self.guiLock = threading.Lock() self.apiDef = IpMgrDefinition.IpMgrDefinition() self.notifClientHandler = None self.guiUpdaters = 0 self.oap_clients = {} # create window self.window = dustWindow.dustWindow('PkGen', self._windowCb_close) # add a API selection frame self.apiFrame = dustFrameApi.dustFrameApi( self.window, self.guiLock, self._apiFrameCb_apiLoaded, row=0,column=0, deviceType=dustFrameApi.dustFrameApi.MANAGER) self.apiFrame.show() # add a connection frame self.connectionFrame = dustFrameConnection.dustFrameConnection( self.window, self.guiLock, self._connectionFrameCb_connected, frameName="manager connection", row=1,column=0 ) # add a mote list frame columnnames = [ # PkGen { 'name': COL_PKGEN_NUM, 'type': dustFrameMoteList.dustFrameMoteList.LABEL, }, { 'name': COL_PKGEN_PPS, 'type': dustFrameMoteList.dustFrameMoteList.LABEL, }, { 'name': COL_PKGEN_CLR, 'type': dustFrameMoteList.dustFrameMoteList.ACTION, }, { 'name': COL_PKGEN_RATE, 'type': dustFrameMoteList.dustFrameMoteList.SETTHREEVAL, }, ] self.moteListFrame = dustFrameMoteList.dustFrameMoteList(self.window, self.guiLock, columnnames, row=2,column=0) self.moteListFrame.show() # add a status (text) frame self.statusFrame = dustFrameText.dustFrameText( self.window, self.guiLock, frameName="status", row=3,column=0) self.statusFrame.show()