self.sr_pkg_version = self.context.package_version
self.sr_lib_version = self.context.lib_version
+ @QtCore.Slot()
def start_sampling(self):
devices = []
for name, options in self.drivers:
self.statusBar().setSizeGripEnabled(False)
+ @QtCore.Slot()
def show_about(self):
text = textwrap.dedent('''\
<div align="center">
return u'\u221E'
return '{:f}'.format(mag)
+ @QtCore.Slot(object)
def update(self, data):
'''Updates the labels with new measurement values.'''
self.lblDevName.setText(device)
self.lblTime.setText(now)
+ @QtCore.Slot(str)
def error(self, msg):
'''Error handler for the sampling thread.'''
QtGui.QMessageBox.critical(self, 'Error', msg)