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