4 _default_text = "AlphaExample example alpha Pmw megawidget.\nPmw version: " + \
5 Pmw.version() + '\nPmw Alpha versions: ' + \
6 string.join(Pmw.version(alpha = 1), ' ')
8 class AlphaExample(Pmw.MessageDialog):
9 # Dummy widget for illustrating use of Pmw alpha version directory
11 def __init__(self, parent = None, **kw):
13 # Define the megawidget options.
16 ('message_text', _default_text, None),
18 self.defineoptions(kw, optiondefs)
20 # Initialise the base class (after defining the options).
21 Pmw.MessageDialog.__init__(self, parent)
23 # Check keywords and initialise options.
24 self.initialiseoptions(AlphaExample)