reduced python source for embedded apps

源代码在线查看: packer-simple.py

软件大小: 3221 K
上传用户: invill
关键词: embedded reduced python source
下载地址: 免注册下载 普通下载 VIP

相关代码

				from Tkinter import *												class Test(Frame):				    def printit(self):					print self.hi_there["command"]								    def createWidgets(self):					# a hello button					self.QUIT = Button(self, text='QUIT', foreground='red', 							   command=self.quit)					self.QUIT.pack(side=LEFT, fill=BOTH)									self.hi_there = Button(self, text='Hello', 							       command=self.printit)					self.hi_there.pack(side=LEFT)									# note how Packer defaults to side=TOP									self.guy2 = Button(self, text='button 2')					self.guy2.pack()									self.guy3 = Button(self, text='button 3')					self.guy3.pack()								    def __init__(self, master=None):					Frame.__init__(self, master)					Pack.config(self)					self.createWidgets()								test = Test()				test.mainloop()							

相关资源