Package schrodinger :: Package ui :: Module widgettable
[hide private]
[frames] | no frames]

Module widgettable

A table whose cells contain Tkinter widgets such as Buttons and Checkbuttons. Take a look at prepwizard.py or vsw_gui.py for application example.

Simple example:

   table = widgettable.WidgetTable(parent, hull_width=200, hull_height=200, 
                                   showtitlebar=True)
   table.pack(side=LEFT)

   col1 = table.addColumn('Checkbutton', columntitle='On', columnwidth=50)
   col2 = table.addColumn('Label', columntitle='Name')

   for i in range(10:
       row = table.addRow()
       cell1 = row.getCell(col1)
       cell2 = row.getCell(col2)
       <modify cell1 or cell2 as necessary>

Copyright Schrodinger, LLC. All rights reserved.

Classes [hide private]
  _Cell
Class defining a cell.
  ButtonCell
Subclass of Tkinter Button widget and Cell.
  LabelCell
Subclass of Tkinter Label widget and Cell.
  RadiobuttonCell
Subclass of Tkinter Radiobutton widget and Cell.
  CheckbuttonCell
Subclass of Tkinter Checkbutton widget and Cell.
  CanvasCell
Subclass of Tkinter Canvas widget and Cell.
  EntryFieldCell
Subclass of Tkinter EntryField and Cell.
  OptionMenuCell
Subclass of Tkinter OptionMenu and Cell.
  CellIterator
column.cell row.cell Class for iterating over cells in a row or column and for getting a cell Cells are indexed starting with 1 Ex: cell = row.cell[1] or: cell = column.cell[1]
  RowIterator
table.row Class for iterating over rows and for getting a row object Ex: row = table.row[rowid]
  ColumnIterator
table.column Class for iterating over columns and getting a column Ex: column = table.column[colid]
  _Column
Base class for a column
  CheckbuttonColumn
Class defining a column of checkbuttons
  RadiobuttonColumn
Class defining a column of Radiobuttons
  ButtonColumn
Class defining a column of Buttons
  LabelColumn
Class defining a column of Labels
  CanvasColumn
Class defining a column of Canvas objects
  EntryFieldColumn
Class defining a column of EntryField cells
  OptionMenuColumn
Class defining a column of OptionMenuCells.
  _Row
Row of a table
  _ScrolledDouble
Two frames that are scrolled with one vertical scroll bar.
  WidgetTable
The table class with scroll bars
Variables [hide private]
  __doc__ = ...
  RESIZE_THRESHOLD = 4
  column_classes = {'button': <class 'schrodinger.ui.widgettable...
  __package__ = 'schrodinger.ui'
Variables Details [hide private]

__doc__

Value:
"""
A table whose cells contain Tkinter widgets such as Buttons and
Checkbuttons.  Take a look at prepwizard.py or vsw_gui.py for applicat\
ion
example.

Simple example::

...

column_classes

Value:
{'button': <class 'schrodinger.ui.widgettable.ButtonColumn'>,
 'canvas': <class 'schrodinger.ui.widgettable.CanvasColumn'>,
 'checkbutton': <class 'schrodinger.ui.widgettable.CheckbuttonColumn'>\
,
 'entryfield': <class 'schrodinger.ui.widgettable.EntryFieldColumn'>,
 'label': <class 'schrodinger.ui.widgettable.LabelColumn'>,
 'optionmenu': <class 'schrodinger.ui.widgettable.OptionMenuColumn'>,
 'radiobutton': <class 'schrodinger.ui.widgettable.RadiobuttonColumn'>\
...