From 285c5ad4c15b6a410c098602ea5dad3aa25651d2 Mon Sep 17 00:00:00 2001 From: perl_d Date: Wed, 28 May 2025 19:46:04 +0200 Subject: [PATCH] fix: add kwargs to widget plugin template --- .../{{ widget_plugin.module }}.py.jinja | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/template/{{project_name}}/bec_widgets/widgets/{% yield widget_plugin from widget_plugins %}{{ widget_plugin.module }}{% endyield %}/{{ widget_plugin.module }}.py.jinja b/template/{{project_name}}/bec_widgets/widgets/{% yield widget_plugin from widget_plugins %}{{ widget_plugin.module }}{% endyield %}/{{ widget_plugin.module }}.py.jinja index d3cb4a0..8a3185b 100644 --- a/template/{{project_name}}/bec_widgets/widgets/{% yield widget_plugin from widget_plugins %}{{ widget_plugin.module }}{% endyield %}/{{ widget_plugin.module }}.py.jinja +++ b/template/{{project_name}}/bec_widgets/widgets/{% yield widget_plugin from widget_plugins %}{{ widget_plugin.module }}{% endyield %}/{{ widget_plugin.module }}.py.jinja @@ -7,5 +7,5 @@ from {{ project_name }}.bec_widgets.widgets.{{ widget_plugin.module }}.{{ widget {% endif %} class {{ widget_plugin.class }}(BECWidget, QWidget{% if widget_plugin.use_ui %}, {{ widget_plugin.ui_class }}{% endif %}): - def __init__(self, parent=None): - super().__init__(parent=parent) + def __init__(self, parent=None, **kwargs): + super().__init__(parent=parent, **kwargs)