def scheme_node_from_element(node_el, registry):
 try:
  widget_desc = registry.widget(node_el.get('qualified_name'))
 except KeyError as ex:
  raise UnknownWidgetDefinition(*ex.args)
 title = node_el.get('title')
 pos = node_el.get('position')
 if (pos is not None):
  pos = tuple_eval(pos)
 return SchemeNode(widget_desc, title=title, position=pos)

def scheme_node_from_element ( node_el , registry ) : try : widget_desc = registry . widget ( node_el . get ( 'qualified_name' ) ) except KeyError as ex : raise UnknownWidgetDefinition ( * ex . args ) title = node_el . get ( 'title' ) pos = node_el . get ( 'position' ) if ( pos is not None ) : pos = tuple_eval ( pos ) return SchemeNode ( widget_desc , title = title , position = pos )
create a schemenode from an element instance .