'''
Created on 2013-9-27
@author: liangqianwu
'''
#_*_ coding:utf-8_*_
from Tkinter import *
def frame(root,side):
w=Frame(root)
w.pack(side=side,expand=YES,fill=BOTH)
return w
def button(root,side,text,command=None):
w=Button(root,text=text,command=command)
w.pack(side=side,expand=YES,fill=BOTH)
return w
class Calculator(Frame):
def __init__(self):
Frame.__init__(self)
self.pack(expand=YES,fill=BOTH)
self.master.title('hello Calculat......
阅读全文