Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
super().__init__(
icon=icon, title=title, parent=parent, action=action, is_enabled=is_enabled
)
class ActionStartImageAcquisition(Action):
def __init__(
self, icon=None, title=None, parent=None, action=None, is_enabled=None
):
#
super().__init__(
icon=icon, title=title, parent=parent, action=action, is_enabled=is_enabled
)
class ActionToggleDrawing(Action):
def __init__(
self, icon=None, title=None, parent=None, action=None, is_enabled=None
):
#
super().__init__(
icon=icon, title=title, parent=parent, action=action, is_enabled=is_enabled,
checkable=True
)
def _update(self):
#
checked = True if self.parent().canvas.is_pausing else False
self.setChecked(checked)
class ActionStopImageAcquisition(Action):
super().__init__(
icon=icon, title=title, parent=parent, action=action, is_enabled=is_enabled
)
class ActionUpdateList(Action):
def __init__(
self, icon=None, title=None, parent=None, action=None, is_enabled=None
):
#
super().__init__(
icon=icon, title=title, parent=parent, action=action, is_enabled=is_enabled
)
class ActionConnect(Action):
def __init__(
self, icon=None, title=None, parent=None, action=None, is_enabled=None
):
#
super().__init__(
icon=icon, title=title, parent=parent, action=action, is_enabled=is_enabled
)
class ActionDisconnect(Action):
def __init__(
self, icon=None, title=None, parent=None, action=None, is_enabled=None
):
#
super().__init__(
icon=icon, title=title, parent=parent, action=action, is_enabled=is_enabled
def __init__(
self, icon=None, title=None, parent=None, action=None, is_enabled=None
):
#
super().__init__(
icon=icon, title=title, parent=parent, action=action, is_enabled=is_enabled,
checkable=True
)
def _update(self):
#
checked = True if self.parent().canvas.is_pausing else False
self.setChecked(checked)
class ActionStopImageAcquisition(Action):
def __init__(
self, icon=None, title=None, parent=None, action=None, is_enabled=None
):
#
super().__init__(
icon=icon, title=title, parent=parent, action=action, is_enabled=is_enabled
)
class ActionShowAttributeController(Action):
def __init__(
self, icon=None, title=None, parent=None, action=None, is_enabled=None
):
#
super().__init__(
icon=icon, title=title, parent=parent, action=action, is_enabled=is_enabled
def action_on_show_about(self):
self.about.setModal(False)
self.about.show()
class ActionSelectFile(Action):
def __init__(
self, icon=None, title=None, parent=None, action=None, is_enabled=None
):
#
super().__init__(
icon=icon, title=title, parent=parent, action=action, is_enabled=is_enabled
)
class ActionUpdateList(Action):
def __init__(
self, icon=None, title=None, parent=None, action=None, is_enabled=None
):
#
super().__init__(
icon=icon, title=title, parent=parent, action=action, is_enabled=is_enabled
)
class ActionConnect(Action):
def __init__(
self, icon=None, title=None, parent=None, action=None, is_enabled=None
):
#
super().__init__(
icon=icon, title=title, parent=parent, action=action, is_enabled=is_enabled
FeatureEditDelegate, FilterProxyModel, FeatureTreeModel
from harvesters._private.frontend.pyqt5.helper import get_system_font
from harvesters._private.frontend.pyqt5.icon import Icon
"""
If you got into a trouble relate to model, the following tool could give
you a hint. ModelTest is a Python script and it tests your model and report
the result:
https://github.com/bgr/PyQt5_modeltest
"""
class ActionExpandAll(Action):
def __init__(self, icon=None, title=None, parent=None, action=None):
#
super().__init__(
icon=icon, title=title, parent=parent, action=action
)
class ActionCollapseAll(Action):
def __init__(self, icon=None, title=None, parent=None, action=None):
#
super().__init__(
icon=icon, title=title, parent=parent, action=action
)
class AttributeController(QMainWindow):
self.canvas.toggle_drawing()
def is_enabled_on_toggle_drawing(self):
enable = False
if self.cti_files:
if self.iam:
if self.iam.is_acquiring_images:
enable = True
return enable
def action_on_show_about(self):
self.about.setModal(False)
self.about.show()
class ActionSelectFile(Action):
def __init__(
self, icon=None, title=None, parent=None, action=None, is_enabled=None
):
#
super().__init__(
icon=icon, title=title, parent=parent, action=action, is_enabled=is_enabled
)
class ActionUpdateList(Action):
def __init__(
self, icon=None, title=None, parent=None, action=None, is_enabled=None
):
#
super().__init__(
icon=icon, title=title, parent=parent, action=action, is_enabled=is_enabled
super().__init__(
icon=icon, title=title, parent=parent, action=action, is_enabled=is_enabled
)
class ActionDisconnect(Action):
def __init__(
self, icon=None, title=None, parent=None, action=None, is_enabled=None
):
#
super().__init__(
icon=icon, title=title, parent=parent, action=action, is_enabled=is_enabled
)
class ActionStartImageAcquisition(Action):
def __init__(
self, icon=None, title=None, parent=None, action=None, is_enabled=None
):
#
super().__init__(
icon=icon, title=title, parent=parent, action=action, is_enabled=is_enabled
)
class ActionToggleDrawing(Action):
def __init__(
self, icon=None, title=None, parent=None, action=None, is_enabled=None
):
#
super().__init__(
icon=icon, title=title, parent=parent, action=action, is_enabled=is_enabled,
super().__init__(
icon=icon, title=title, parent=parent, action=action, is_enabled=is_enabled
)
class ActionConnect(Action):
def __init__(
self, icon=None, title=None, parent=None, action=None, is_enabled=None
):
#
super().__init__(
icon=icon, title=title, parent=parent, action=action, is_enabled=is_enabled
)
class ActionDisconnect(Action):
def __init__(
self, icon=None, title=None, parent=None, action=None, is_enabled=None
):
#
super().__init__(
icon=icon, title=title, parent=parent, action=action, is_enabled=is_enabled
)
class ActionStartImageAcquisition(Action):
def __init__(
self, icon=None, title=None, parent=None, action=None, is_enabled=None
):
#
super().__init__(
icon=icon, title=title, parent=parent, action=action, is_enabled=is_enabled
super().__init__(
icon=icon, title=title, parent=parent, action=action, is_enabled=is_enabled
)
class ActionStartImageAcquisition(Action):
def __init__(
self, icon=None, title=None, parent=None, action=None, is_enabled=None
):
#
super().__init__(
icon=icon, title=title, parent=parent, action=action, is_enabled=is_enabled
)
class ActionToggleDrawing(Action):
def __init__(
self, icon=None, title=None, parent=None, action=None, is_enabled=None
):
#
super().__init__(
icon=icon, title=title, parent=parent, action=action, is_enabled=is_enabled,
checkable=True
)
def _update(self):
#
checked = True if self.parent().canvas.is_pausing else False
self.setChecked(checked)
class ActionStopImageAcquisition(Action):