| 1 | # [Emacs: -*- python -*-] |
| 2 | # --- This is the Pmw definition file --- |
| 3 | # |
| 4 | # It is invoked by the Pmw dynamic loader in Pmw.__init__. |
| 5 | # |
| 6 | # widgets : tuple with the names of those widget classes that are |
| 7 | # stacked in a module of the same name. |
| 8 | # widgetclasses : dictionary from names of widget classes to module names. |
| 9 | # functions : dictionary from function names to modules names. |
| 10 | # modules : tuple of module names that don't contain widget classes |
| 11 | # of the same name. |
| 12 | # |
| 13 | |
| 14 | # Widgets whose name is the same as its module. |
| 15 | _widgets = ( |
| 16 | 'AboutDialog', 'Balloon', 'ButtonBox', 'ComboBox', |
| 17 | 'ComboBoxDialog', 'Counter', 'CounterDialog', 'Dialog', |
| 18 | 'EntryField', 'Group', 'HistoryText', 'LabeledWidget', |
| 19 | 'MainMenuBar', 'MenuBar', 'MessageBar', |
| 20 | 'MessageDialog', 'NoteBook', 'OptionMenu', 'PanedWidget', |
| 21 | 'PromptDialog', 'RadioSelect', 'ScrolledCanvas', 'ScrolledField', |
| 22 | 'ScrolledFrame', 'ScrolledListBox', 'ScrolledText', 'SelectionDialog', |
| 23 | 'TextDialog', 'TimeCounter', |
| 24 | ) |
| 25 | |
| 26 | # Widgets whose name is not the same as its module. |
| 27 | _extraWidgets = { |
| 28 | } |
| 29 | |
| 30 | _functions = { |
| 31 | 'logicalfont' : 'LogicalFont', |
| 32 | 'logicalfontnames' : 'LogicalFont', |
| 33 | 'aboutversion' : 'AboutDialog', |
| 34 | 'aboutcopyright' : 'AboutDialog', |
| 35 | 'aboutcontact' : 'AboutDialog', |
| 36 | 'datestringtojdn' : 'TimeFuncs', |
| 37 | 'timestringtoseconds' : 'TimeFuncs', |
| 38 | 'setyearpivot' : 'TimeFuncs', |
| 39 | 'ymdtojdn' : 'TimeFuncs', |
| 40 | 'jdntoymd' : 'TimeFuncs', |
| 41 | 'stringtoreal' : 'TimeFuncs', |
| 42 | 'aligngrouptags' : 'Group', |
| 43 | 'OK' : 'EntryField', |
| 44 | 'ERROR' : 'EntryField', |
| 45 | 'PARTIAL' : 'EntryField', |
| 46 | 'numericvalidator' : 'EntryField', |
| 47 | 'integervalidator' : 'EntryField', |
| 48 | 'hexadecimalvalidator' : 'EntryField', |
| 49 | 'realvalidator' : 'EntryField', |
| 50 | 'alphabeticvalidator' : 'EntryField', |
| 51 | 'alphanumericvalidator' : 'EntryField', |
| 52 | 'timevalidator' : 'EntryField', |
| 53 | 'datevalidator' : 'EntryField', |
| 54 | } |
| 55 | |
| 56 | _modules = ( |
| 57 | 'Color', 'Blt', |
| 58 | ) |