def __init__(self, guiParent, lbrClient, connectParams_cb, width=None, height=None, frameName="connect to the LBR", row=0, column=0, columnspan=1): # store params self.lbrClient = lbrClient self.connectParams_cb = connectParams_cb # initialize the parent class OpenFrame.OpenFrame.__init__( self, guiParent, width=width, height=height, frameName=frameName, row=row, column=column, columnspan=columnspan, ) # local variables #===== # connect button self.connectButton = OpenButton( self.container, text='connect', command=self._retrieveConnectionDetails) self.connectButton.grid(row=0, column=0) #===== # disconnectReason temp = OpenLabel(self.container, text="disconnect reason:") temp.grid(row=1, column=0) self.disconnectReasonLabel = OpenLabel(self.container) self.disconnectReasonLabel.grid(row=1, column=1) # status temp = OpenLabel(self.container, text="status:") temp.grid(row=2, column=0) self.statusLabel = OpenLabel(self.container) self.statusLabel.grid(row=2, column=1) # prefix temp = OpenLabel(self.container, text="prefix:") temp.grid(row=3, column=0) self.prefixLabel = OpenLabel(self.container) self.prefixLabel.grid(row=3, column=1) # statsTxOk temp = OpenLabel(self.container, text="transmitted to LBR:") temp.grid(row=4, column=0) self.statsTxOkLabel = OpenLabel(self.container) self.statsTxOkLabel.grid(row=4, column=1) # statsTxFailed temp = OpenLabel(self.container, text="could not transmit to LBR:") temp.grid(row=5, column=0) self.statsTxFailedLabel = OpenLabel(self.container) self.statsTxFailedLabel.grid(row=5, column=1) # statsRx temp = OpenLabel(self.container, text="received from LBR:") temp.grid(row=6, column=0) self.statsRxLabel = OpenLabel(self.container) self.statsRxLabel.grid(row=6, column=1) # trigger the update of the stats self.after(self.GUIUPDATEPERIOD, self._updateStats)