Grid

Esta clase usa una rejilla (matriz) para colocar los widgets en la fila y columna que indiquemos.

El comando help(tkinter.Grid) proporciona buena información sobre esta clase y los métodos que tienen todos los widgets estudiados en esta asignatura. Literalmente nos indica que tkinter.Grid es la clase base para utilizar todos los métodos que comienzan con grid_ en los widgets declarados en una aplicación.

Los métodos que define esta clase son:

 |  bbox = grid_bbox(self, column=None, row=None, col2=None, row2=None)
 |  
 |  columnconfigure = grid_columnconfigure(self, index, cnf={}, **kw)
 |  
 |  config = grid_configure(self, cnf={}, **kw)
 |  
 |  configure = grid_configure(self, cnf={}, **kw)
 |  
 |  forget = grid_forget(self)
 |  
 |  grid = grid_configure(self, cnf={}, **kw)
 |  
 |  grid_bbox(self, column=None, row=None, col2=None, row2=None)
 |      Return a tuple of integer coordinates for the bounding
 |      box of this widget controlled by the geometry manager grid.
 |      
 |      If COLUMN, ROW is given the bounding box applies from
 |      the cell with row and column 0 to the specified
 |      cell. If COL2 and ROW2 are given the bounding box
 |      starts at that cell.
 |      
 |      The returned integers specify the offset of the upper left
 |      corner in the master widget and the width and height.
 |  
 |  grid_columnconfigure(self, index, cnf={}, **kw)
 |      Configure column INDEX of a grid.
 |      
 |      Valid resources are minsize (minimum size of the column),
 |      weight (how much does additional space propagate to this column)
 |      and pad (how much space to let additionally).
 |  
 |  grid_configure(self, cnf={}, **kw)
 |      Position a widget in the parent widget in a grid. Use as options:
 |      column=number - use cell identified with given column (starting with 0)
 |      columnspan=number - this widget will span several columns
 |      in=master - use master to contain this widget
 |      in_=master - see 'in' option description
 |      ipadx=amount - add internal padding in x direction
 |      ipady=amount - add internal padding in y direction
 |      padx=amount - add padding in x direction
 |      pady=amount - add padding in y direction
 |      row=number - use cell identified with given row (starting with 0)
 |      rowspan=number - this widget will span several rows
 |      sticky=NSEW - if cell is larger on which sides will this
 |                    widget stick to the cell boundary
 |  
 |  grid_forget(self)
 |      Unmap this widget.
 |  
 |  grid_info(self)
 |      Return information about the options
 |      for positioning this widget in a grid.
 |
 |  grid_location(self, x, y)
 |      Return a tuple of column and row which identify the cell
 |      at which the pixel at position X and Y inside the master
 |      widget is located.
 |  
 |  grid_propagate(self, flag=['_noarg_'])
 |      Set or get the status for propagation of geometry information.
 |      
 |      A boolean argument specifies whether the geometry information
 |      of the slaves will determine the size of this widget. If no argument
 |      is given, the current setting will be returned.
 |  
 |  grid_remove(self)
 |      Unmap this widget but remember the grid options.
 |  
 |  grid_rowconfigure(self, index, cnf={}, **kw)
 |      Configure row INDEX of a grid.
 |      
 |      Valid resources are minsize (minimum size of the row),
 |      weight (how much does additional space propagate to this row)
 |      and pad (how much space to let additionally).
 |  
 |  grid_size(self)
 |      Return a tuple of the number of column and rows in the grid.
 |  
 |  grid_slaves(self, row=None, column=None)
 |      Return a list of all slaves of this widget
 |      in its packing order.
 |  
 |  info = grid_info(self)
 |  
 |  location = grid_location(self, x, y)
 |  
 |  propagate = grid_propagate(self, flag=['_noarg_'])
 |  
 |  rowconfigure = grid_rowconfigure(self, index, cnf={}, **kw)
 |  
 |  size = grid_size(self)
 |  
 |  slaves = grid_slaves(self, row=None, column=None)

results matching ""

    No results matching ""