Initial commit of OpenSPARC T2 architecture model.
[OpenSPARC-T2-SAM] / sam-t2 / devtools / v9 / lib / python2.4 / site-packages / Pmw / Pmw_1_2 / demos / NoteBook_3.py
CommitLineData
920dae64
AT
1title = 'Pmw.NoteBook demonstration (with no tabs)'
2
3# Import Pmw from this directory tree.
4import sys
5sys.path[:0] = ['../../..']
6
7import Tkinter
8import Pmw
9
10# Reuse the NoteBook with tabs demo.
11import NoteBook_2
12
13class Demo(NoteBook_2.Demo):
14 def __init__(self, parent):
15 NoteBook_2.Demo.__init__(self, parent, withTabs = 0)
16
17# Create demo in root window for testing.
18if __name__ == '__main__':
19 root = Tkinter.Tk()
20 Pmw.initialise(root)
21 root.title(title)
22
23 widget = Demo(root)
24 exitButton = Tkinter.Button(root, text = 'Exit', command = root.destroy)
25 exitButton.pack()
26 root.mainloop()