1 title = 'Pmw.EXAMPLE demonstration'
3 # Import Pmw from this directory tree.
5 sys.path[:0] = ['../../..']
11 def __init__(self, parent):
13 # Create and pack the EXAMPLEs.
14 self.widget1 = Pmw.Counter(parent)
15 self.widget1.setentry('1')
18 self.widget2 = Pmw.Counter(parent, increment = 10)
19 self.widget2.setentry('100')
22 ######################################################################
24 # Create demo in root window for testing.
25 if __name__ == '__main__':
30 exitButton = Tkinter.Button(root, text = 'Exit', command = root.destroy)
31 exitButton.pack(side = 'bottom')