1 title = 'Pmw.AboutDialog demonstration'
3 # Import Pmw from this directory tree.
5 sys.path[:0] = ['../../..']
11 def __init__(self, parent):
13 Pmw.aboutversion('9.9')
14 Pmw.aboutcopyright('Copyright My Company 1999\nAll rights reserved')
16 'For information about this application contact:\n' +
18 ' Phone: +61 2 9876 5432\n' +
19 ' email: help@my.company.com.au'
21 self.about = Pmw.AboutDialog(parent, applicationname = 'My Application')
24 # Create button to launch the dialog.
25 w = Tkinter.Button(parent, text = 'Show about dialog',
26 command = self.execute)
27 w.pack(padx = 8, pady = 8)
32 ######################################################################
34 # Create demo in root window for testing.
35 if __name__ == '__main__':
40 exitButton = Tkinter.Button(root, text = 'Exit', command = root.destroy)
41 exitButton.pack(side = 'bottom')