Last change
on this file was 2, checked in by Yuri Dario, 15 years ago |
Initial import for vendor code.
|
-
Property svn:eol-style
set to
native
|
File size:
675 bytes
|
Line | |
---|
1 | from Tkinter import *
|
---|
2 |
|
---|
3 |
|
---|
4 | class Test(Frame):
|
---|
5 | def createWidgets(self):
|
---|
6 |
|
---|
7 | self.Gpanel = Frame(self, width='1i', height='1i',
|
---|
8 | background='green')
|
---|
9 | self.Gpanel.pack(side=LEFT)
|
---|
10 |
|
---|
11 | # a QUIT button
|
---|
12 | self.Gpanel.QUIT = Button(self.Gpanel, text='QUIT',
|
---|
13 | foreground='red',
|
---|
14 | command=self.quit)
|
---|
15 | self.Gpanel.QUIT.pack(side=LEFT)
|
---|
16 |
|
---|
17 |
|
---|
18 | def __init__(self, master=None):
|
---|
19 | Frame.__init__(self, master)
|
---|
20 | Pack.config(self)
|
---|
21 | self.createWidgets()
|
---|
22 |
|
---|
23 | test = Test()
|
---|
24 |
|
---|
25 | test.master.title('packer demo')
|
---|
26 | test.master.iconname('packer')
|
---|
27 |
|
---|
28 | test.mainloop()
|
---|
Note:
See
TracBrowser
for help on using the repository browser.