TermTk.TTkUiTools.uiloader
TTkUiLoader
- class TTkUiLoader[source]
-
- static loadDict(ui, baseWidget: TTkWidget = None, kwargs=None) TTkWidget [source]
load the dictionary representing the ui definition of the widget
- Parameters
ui (dictionary generated by ttkDesigner) – the representation of the widget
baseWidget (
TTkWidget
, optional) – the custom widget that will be extended with this ui definition, if not defined a newTTkWidget
will be returned,defaults to Nonekwargs (dictionary, optional) – the custom initialization args,defaults to None
- Returns
- static loadFile(filePath, baseWidget: TTkWidget = None, kwargs=None) TTkWidget [source]
load the file generated by ttkDesigner
- Parameters
- Returns
- static loadJson(text, baseWidget: TTkWidget = None, kwargs=None) TTkWidget [source]
load the json representing the ui definition of the widget
- Parameters
text (json generated by ttkDesigner) – the representation of the widget in Json format
baseWidget (
TTkWidget
, optional) – the custom widget that will be extended with this ui definition, if not defined a newTTkWidget
will be returned,defaults to Nonekwargs (dictionary, optional) – the custom initialization args,defaults to None
- Returns