parameters: (self, w, col=None, row=None, colspan=1, rowspan=1)
return_statement: return
docstring: Add a widget directly into the table, without wrapping it in a TD container.
          
          See Table.td for an explanation of the parameters.
docstring_summary: Add a widget directly into the table, without wrapping it in a TD container.
          
          See Table.td for an explanation of the parameters.
docstring_tokens: Add a widget directly into the table without wrapping it in a TD container . See Table . td for an explanation of the parameters .
function: def add(self, w, col=None, row=None, colspan=1, rowspan=1):
          """Add a widget directly into the table, without wrapping it in a TD container.
          
          See Table.td for an explanation of the parameters.
  
          """
          self._trok = True
          #if no row was specifically specified, set it to the current row
          if row is None:
              row = self._curRow
              #print row
          
          #if its going to be a new row, have it be on the first column
          if row >= self.getRows():
              col = 0
          
          #try to find an open cell for the widget
          if col is None:
              for cell in range(self.getColumns()):
                  if col is None and not self._rows[row][cell]:
                      col = cell
                      break
          
          #otherwise put the widget in a new column
          if col is None:
              col = self.getColumns()
          
          self._setCell(w, col, row, colspan=colspan, rowspan=rowspan)
          
          self.chsize()
          return
function_tokens: def add ( self , w , col = None , row = None , colspan = 1 , rowspan = 1 ) : self . _trok = True #if no row was specifically specified, set it to the current row if row is None : row = self . _curRow #print row #if its going to be a new row, have it be on the first column if row >= self . getRows ( ) : col = 0 #try to find an open cell for the widget if col is None : for cell in range ( self . getColumns ( ) ) : if col is None and not self . _rows [ row ] [ cell ] : col = cell break #otherwise put the widget in a new column if col is None : col = self . getColumns ( ) self . _setCell ( w , col , row , colspan = colspan , rowspan = rowspan ) self . chsize ( ) return