'Return the current widget properties/settings.
Parameters
node : SchemeNode
Returns
settings : dict'

def widget_properties(self, node):

    state = self.__initstate_for_node[node]
    if isinstance(state, WidgetManager.Materialized):
        return state.widget.settingsHandler.pack_data(state.widget)
    else:
        return node.properties
