mirror of
https://github.com/bec-project/bec_widgets.git
synced 2025-07-14 03:31:50 +02:00
refactor(widgets/BECCurve): set kwargs for curve style while adding curve
This commit is contained in:
@ -88,9 +88,11 @@ class BECCurve(BECConnector, pg.PlotDataItem):
|
|||||||
self.config = config
|
self.config = config
|
||||||
# config.widget_class = self.__class__.__name__
|
# config.widget_class = self.__class__.__name__
|
||||||
super().__init__(config=config, gui_id=gui_id)
|
super().__init__(config=config, gui_id=gui_id)
|
||||||
pg.PlotDataItem.__init__(self, name=name, **kwargs)
|
pg.PlotDataItem.__init__(self, name=name)
|
||||||
|
|
||||||
self.apply_config()
|
self.apply_config()
|
||||||
|
if kwargs:
|
||||||
|
self.set(**kwargs)
|
||||||
|
|
||||||
def apply_config(self):
|
def apply_config(self):
|
||||||
pen_style_map = {
|
pen_style_map = {
|
||||||
|
Reference in New Issue
Block a user