其中一种修改方式:
import tkinter #导入tkinter模块
class wxWindows():
def __init__(self):
self.root = tkinter.Tk()
self.root.title("******************")
self.button1=tkinter.Button(self.root,anchor=tkinter.E,text="按钮1",width=30,height=7)
self.button1.pack()
self.root.mainloop()
if __name__ == '__main__':
wxWindows()