parameters: (elem)
return_statement: return (row, column, rowspan, colspan, _parse_alignment(alignment))
docstring: Return either (), (0, alignment), (row, column, rowspan, colspan) or
      (row, column, rowspan, colspan, alignment) depending on the type of layout
      and its configuration.  The result will be suitable to use as arguments to
      the layout.
docstring_summary: Return either (), (0, alignment), (row, column, rowspan, colspan) or
      (row, column, rowspan, colspan, alignment) depending on the type of layout
      and its configuration.  The result will be suitable to use as arguments to
      the layout.
docstring_tokens: Return either () ( 0 alignment ) ( row column rowspan colspan ) or ( row column rowspan colspan alignment ) depending on the type of layout and its configuration . The result will be suitable to use as arguments to the layout .
function: def _layout_position(elem):
      """ Return either (), (0, alignment), (row, column, rowspan, colspan) or
      (row, column, rowspan, colspan, alignment) depending on the type of layout
      and its configuration.  The result will be suitable to use as arguments to
      the layout.
      """
  
      row = elem.attrib.get('row')
      column = elem.attrib.get('column')
      alignment = elem.attrib.get('alignment')
  
      # See if it is a box layout.
      if row is None or column is None:
          if alignment is None:
              return ()
  
          return (0, _parse_alignment(alignment))
  
      # It must be a grid or a form layout.
      row = int(row)
      column = int(column)
  
      rowspan = int(elem.attrib.get('rowspan', 1))
      colspan = int(elem.attrib.get('colspan', 1))
  
      if alignment is None:
          return (row, column, rowspan, colspan)
  
      return (row, column, rowspan, colspan, _parse_alignment(alignment))
function_tokens: def _layout_position ( elem ) : row = elem . attrib . get ( 'row' ) column = elem . attrib . get ( 'column' ) alignment = elem . attrib . get ( 'alignment' ) # See if it is a box layout. if row is None or column is None : if alignment is None : return ( ) return ( 0 , _parse_alignment ( alignment ) ) # It must be a grid or a form layout. row = int ( row ) column = int ( column ) rowspan = int ( elem . attrib . get ( 'rowspan' , 1 ) ) colspan = int ( elem . attrib . get ( 'colspan' , 1 ) ) if alignment is None : return ( row , column , rowspan , colspan ) return ( row , column , rowspan , colspan , _parse_alignment ( alignment ) )