Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
self._view.collapseAll()
def resize_column_width(self):
for i in range(self._model.columnCount()):
self._view.resizeColumnToContents(i)
def action_on_expand_all(self):
self.expand_all()
def action_on_collapse_all(self):
self.collapse_all()
if __name__ == '__main__':
app = QApplication(sys.argv)
about = AttributeController()
about.show()
sys.exit(app.exec_())
#
self.iam.thread_image_acquisition = PyQtThread(
parent=self, mutex=self.mutex
)
self.iam.thread_statistics_measurement = PyQtThread(
parent=self, mutex=self.mutex
)
self.iam.updated_statistics = self._signal_update_statistics
self.iam.signal_stop_image_acquisition = self._signal_stop_image_acquisition
try:
if self.iam.device.node_map:
self._widget_attribute_controller = \
AttributeController(
self.iam.device.node_map,
parent=self
)
except AttributeError:
pass
#
self.canvas.iam = self.iam
#
self.iam.thread_image_acquisition = PyQtThread(
parent=self, mutex=self.mutex
)
self.iam.thread_statistics_measurement = PyQtThread(
parent=self, mutex=self.mutex
)
self.iam.updated_statistics = self._signal_update_statistics
self.iam.signal_stop_image_acquisition = self._signal_stop_image_acquisition
try:
if self.iam.device.node_map:
self._widget_attribute_controller = \
AttributeController(
self.iam.device.node_map,
parent=self
)
except AttributeError:
pass
#
self.canvas.iam = self.iam