Package Pmv :: Module guiTools :: Class MoleculeListChooser
[hide private]
[frames] | no frames]

Class MoleculeListChooser

source code

   mglutil.gui.BasicWidgets.Tk.customizedWidgets.KeySelectable --+            
                                                                 |            
mglutil.gui.BasicWidgets.Tk.customizedWidgets.KeySelectableListBox --+        
                                                                     |        
             mglutil.gui.BasicWidgets.Tk.customizedWidgets.ListChooser --+    
                                                                         |    
               mglutil.gui.BasicWidgets.Tk.customizedWidgets.ObjectChooser --+
                                                                             |
                                                                            MoleculeListChooser

class to present a list of molecules in a scrolled listbox.

Instance Methods [hide private]
  __init__(self, root, mode='single', title='Choose', molecules=None, cwcfg={'usehullsize': 1,'hull_width': 100,'hull_height': 80,'text_wrap': 'none'}, lbpackcfg={'fill': 'x','expand': 1}, lbwcfg={})
  buildObject(self, molecules)
  add(self, molecule)
Add an entry to the moleculelistchooser.
  insert(self, pos, molecule)
insert an entry to the list
  get(self, event=None)
get the current selection

Inherited from mglutil.gui.BasicWidgets.Tk.customizedWidgets.ListChooser: clear, clearComments, deselect, getInd, grid, grid_forget, info, pack, pack_forget, remove, select, set, setlist

Inherited from mglutil.gui.BasicWidgets.Tk.customizedWidgets.KeySelectableListBox: clearSelection, getAllValues, selectItem

Inherited from mglutil.gui.BasicWidgets.Tk.customizedWidgets.KeySelectable: Enter_cb, Leave_cb, enterKeyCb, key_cb, releaseFocus_cb, setFocus_cb, timeOut


Method Details [hide private]

__init__(self, root, mode='single', title='Choose', molecules=None, cwcfg={'usehullsize': 1,'hull_width': 100,'hull_height': 80,'text_wrap': 'none'}, lbpackcfg={'fill': 'x','expand': 1}, lbwcfg={})
(Constructor)

source code 
None
Overrides: mglutil.gui.BasicWidgets.Tk.customizedWidgets.ObjectChooser.__init__

buildObject(self, molecules)

source code 
None

add(self, molecule)

source code 
Add an entry to the moleculelistchooser.
Overrides: mglutil.gui.BasicWidgets.Tk.customizedWidgets.ObjectChooser.add

insert(self, pos, molecule)

source code 
insert an entry to the list
Overrides: mglutil.gui.BasicWidgets.Tk.customizedWidgets.ObjectChooser.insert

get(self, event=None)

source code 
get the current selection
Overrides: mglutil.gui.BasicWidgets.Tk.customizedWidgets.ObjectChooser.get