title
= 'Pmw.AboutDialog demonstration'
# Import Pmw from this directory tree.
sys
.path
[:0] = ['../../..']
def __init__(self
, parent
):
Pmw
.aboutcopyright('Copyright My Company 1999\nAll rights reserved')
'For information about this application contact:\n' +
' Phone: +61 2 9876 5432\n' +
' email: help@my.company.com.au'
self
.about
= Pmw
.AboutDialog(parent
, applicationname
= 'My Application')
# Create button to launch the dialog.
w
= Tkinter
.Button(parent
, text
= 'Show about dialog',
w
.pack(padx
= 8, pady
= 8)
######################################################################
# Create demo in root window for testing.
if __name__
== '__main__':
exitButton
= Tkinter
.Button(root
, text
= 'Exit', command
= root
.destroy
)
exitButton
.pack(side
= 'bottom')