________________________________________________

OVERVIEW OF THE PYTHON MEGA WIDGETS
________________________________________________



Pmw is a toolkit for building high-level compound widgets in Python using the Tkinter module. It consists of a set of base classes and a library of flexible and extensible megawidgets built on this foundation. These megawidgets include notebooks, comboboxes, selection widgets, paned widgets, scrolled widgets, dialog windows, etc...
For more information on the Pmw please refer to: http://www.dscpl.com.au/pmw/doc/index.html

TIP:The InputFormDescr dictionary for all the Pmw widget including several Tkinter widgets such as the ButtonBox, RadioSelect etc..., uses the keyword listtext like the inputFormDescr describing a group of Tkinter widgets .

  1. The ButtonBox Widget.
  2. - Options:
    The options used to describe the buttonbox widget can be found http://www.dscpl.com.au/pmw/doc/ButtonBox.html
    No example of the buttonbox available right now :(

  3. The ComboBox Widget.
  4. - Options:
    The options used to describe the buttonbox widget can be found http://www.dscpl.com.au/pmw/doc/ComboBox.html

    - Example:
    Here is an example of an InputFormDescr dictionary decribing a ComboBox widget.
    
          >>>from ViewerFramework.gui import InputFormDescr, InputForm, CallBackFunction
          >>>import Pmw
          >>>idf = InputFormDescr(title = 'ComboBox')
          >>>flavors = ['rasberry', 'strawberry','chocolate', 'vanilla', 'pecan',
                        'peach','apricot','pear']
          >>>idf.append({'widgetType':Pmw.ComboBox,
                         'name':'flavor',
    		     'wcfg':{'label_text':'Icecream flavors',
    		             'labelpos':'n',
    			     'scrolledlist_items': flavors},
    		     'gridcfg':{'sticky':'w'}})
          
          >>>val = self.vf.getUserInput(idf)
          

  5. The Counter Widget.
  6. - Options:
    The options used to describe the buttonbox widget can be found http://www.dscpl.com.au/pmw/doc/Counter.html

    - Example:

    Here is an example of an InputFormDescr dictionary describing a Counter widget.
    
         >>>from ViewerFramework.gui import InputFormDescr, InputForm, CallBackFunction
         >>>import Pmw
         >>>idf = InputFormDescr(title = 'Counter')
         >>>idf.append({'widgetType':Pmw.Counter,
                        'name':'counter',
                        'wcfg':{'labelpos': 'n',
                                'label_text':'first counter:  ',
                                'entryfield_value':'2.0',
                                'datatype': {'counter' : 'real',
                                             'separator' : '.'},
                                'entry_width':9,
                                'entryfield_validate':{'validator' : 'real',
                                                       'min' : '1.0',
                                                       'max' : '80.0',
                                                       'separator' : '.'},
                                'increment':0.1},
                        'gridcfg':{'sticky':'w'}})
          >>>val = self.vf.getUserInput(idf)
          

  7. The EntryField Widget.
  8. - Options:
    The options used to describe the buttonbox widget can be found http://www.dscpl.com.au/pmw/doc/EntryField.html

    - Example:
    Here is an example of an InputFormDescr dictionary describing an EntryField widget.
    
          >>>from ViewerFramework.gui import InputFormDescr, InputForm, CallBackFunction
          >>>import Pmw
          >>>idf = InputFormDescr(title = 'EntryField')
          >>>idf.append({'widgetType':Pmw.EntryField,
                         'name':'entryfield',
                         'wcfg':{'labelpos':'n',
                                 'label_text':'My First EntryField',
                                 'validate':None},
    		     'gridcfg':{'sticky':'we'}})
                      
          >>>val = self.vf.getUserInput(idf)
          

  9. The Group Widget.
  10. - Options:
    The options used to describe the Group widget can be found http://www.dscpl.com.au/pmw/doc/Group.html

    - Example:

    Sorry No example available for this widget :)

  11. The Labeled Widget.
  12. - Options:
    The options used to describe the Group widget can be found http://www.dscpl.com.au/pmw/doc/LabeledWidget.html

    - Example:

    Here is an example of an InputFromDescr dictionary describing a LabeledWidgets.
    
         
         

  13. The MenuBar Widget.
  14. - Options:
    The options used to describe the Group widget can be found http://www.dscpl.com.au/pmw/doc/MenuBar.html

    - Example:
    Here is an example of a InputFormDescr dictionary describing a MenuBar widget
    
         
         

  15. The MessageBar Widget.
  16. - Options:
    The options used to describe the Group widget can be found http://www.dscpl.com.au/pmw/doc/MessageBar.html

    - Example:
    Here is an example of an InputFormDescr dictionary describing a MessageBar widget.
    
         
         

  17. The NoteBook Widget.
  18. - Options:
    The options used to describe the NoteBook widget can be found http://www.dscpl.com.au/pmw/doc/NoteBook.html

    - Example:

    Here is an example of an InputFormDescr dictionary describing a NoteBook widget.
    
         
         

  19. The Option Menu.
  20. - Options:
    The options used to describe the OptionMenu widget can be found http://www.dscpl.com.au/pmw/doc/OptionMenu.html

    - Example:
    Here is an example of an InputFormDescr dictionary describing a OptionMenu widget
    
         
         

  21. The Paned Widget.
  22. - Options:
    The options used to describe the PanedWidget can be found http://www.dscpl.com.au/pmw/doc/PanedWidget.html

    - Example:
    Here is an example of an InputFromDescr dictionary describing a PanedWidget
    
         
         

  23. The RadioSelect Widget.
  24. - Options:
    The options used to describe the RadioSelect widget can be found http://www.dscpl.com.au/pmw/doc/RadioSelect.html

    - Example:

    Here is an example of an InputFromDescr dictionary describing a RadioSelect widget.
    
         
         

  25. The ScrolledCanvas Widget.
  26. - Options:
    The options used to describe the ScrolledCanvas widget can be found http://www.dscpl.com.au/pmw/doc/ScrolledCanvas.html

    - Example:
    Here is an example of a InputFormDescr dictionary describing a ScrolledCanvas widget.
    
         
         

  27. The ScrolledField Widget.
  28. - Options:
    The options used to describe the ScrolledFiels widget can be found http://www.dscpl.com.au/pmw/doc/ScrolledField.html

    - Example:
    Here is an example of an InputFormDescr dictionary describing a ScrolledField widget.
    
         
         

  29. The ScrolledFrame Widget.
  30. - Options:
    The options used to describe the ScrolledFrame widget can be found http://www.dscpl.com.au/pmw/doc/ScrolledFrame.html

    - Example:
    Here is an example of an InputFormDescr dictionary describing a ScrolledFrame widget.
    
         
         

  31. The ScrolledText Widget.
  32. - Options:
    The options used to describe the ScrolledText widget can be found http://www.dscpl.com.au/pmw/doc/ScrolledText.html

    - Example:
    Here is an example of an InputFormDescr dictionary describing a ScrolledText widget.
    
         
         

  33. The ScrolledListBox Widget.
  34. - Options:
    The options used to describe the ScrolledListBox widget can be found http://www.dscpl.com.au/pmw/doc/ScrolledListBox.html

    - Example:
    
         
         

  35. The TimeCounter Widget.
  36. - Options:
    The options used to describe the TimeCounter widget can be found http://www.dscpl.com.au/pmw/doc/TimeCounter.html

    - Example:

    Here is an example of an InputFromDescr dictionary describing a TimeCounter widget.
    
         
         




________________________________________________


Sophie Coon
July 2000
For suggestions or more information please contact:

   mgltools@scripps.edu