# HG changeset patch # User Goffi # Date 1535727490 -7200 # Node ID 525527a01439a77c4652aea31b2893c8acbddf7d # Parent 61ba5d193cfee78d147f51e7c6e7346060aa56b5 xmlui: use create with partial and class_map, following change in base class diff -r 61ba5d193cfe -r 525527a01439 cagou/core/xmlui.py --- a/cagou/core/xmlui.py Fri Aug 31 16:56:38 2018 +0200 +++ b/cagou/core/xmlui.py Fri Aug 31 16:58:10 2018 +0200 @@ -35,6 +35,7 @@ from kivy import properties from cagou import G from cagou.core import dialog +from functools import partial ## Widgets ## @@ -577,6 +578,6 @@ dialog_factory = WidgetFactory() -xmlui.registerClass(xmlui.CLASS_PANEL, XMLUIPanel) -xmlui.registerClass(xmlui.CLASS_DIALOG, XMLUIDialog) -create = xmlui.create +create = partial(xmlui.create, class_map={ + xmlui.CLASS_PANEL: XMLUIPanel, + xmlui.CLASS_DIALOG: XMLUIDialog})