0
0
mirror of https://github.com/bec-project/bec_widgets.git synced 2025-07-14 03:31:50 +02:00

refactor: clean up

This commit is contained in:
wyzula-jan
2023-11-08 11:23:25 +01:00
parent 679d3e1980
commit 1f0103480d

View File

@ -68,30 +68,6 @@ class SpinBoxHandler(WidgetHandler):
widget.setValue(value)
# TODO remove when widgetIO works
# HANDLERS = {
# QLineEdit: LineEditHandler,
# QComboBox: ComboBoxHandler,
# QTableWidget: TableWidgetHandler,
# QSpinBox: SpinBoxHandler,
# QDoubleSpinBox: SpinBoxHandler,
# }
#
##################### Public interface for getting and setting values #####################
# def get_value(widget):
# handler_class = HANDLERS.get(type(widget))
# if handler_class:
# return handler_class.get_value(widget)
# return None
#
#
# def set_value(widget, value):
# handler_class = HANDLERS.get(type(widget))
# if handler_class:
# handler_class.set_value(widget, value)
class WidgetIO:
"""Public interface for getting and setting values using handler mapping"""