harry - azhu99

别来无恙 提交于 2019-12-30 01:11:22
import tkinter as tk
import dui

mw = tk.Tk()
mw.title('azhu99')
mw.geometry('500x500')


def duidraw():
    dui.draw()


btn1 = tk.Button(
    mw,
    text="对称图形",
    font=(None, 20),
    bg="#43CD80",
    fg='black',
    command=duidraw
)
btn1.place(x=10, y=10, width=200, height=50)


def duistar():
    dui.star()


btn2 = tk.Button(
    mw,
    text='满天星',
    font=(None, 20),
    bg='#43CD80',
    fg='black',
    command=duistar

)
btn2.place(x=230, y=10, width=200, height=50)


def jie():
    pass


btn3 = tk.Button(
    mw,
    text='接小球游戏',
    font=(None, 20),
    bg='#43CD80',
    fg='black',
    command=jie \
 \
    )
btn3.place(x=10, y=70, width=200, height=50)

btn4 = tk.Button(
    mw,
    text='小鸟管道游戏',
    font=(None, 20),
    bg='#43CD80',
    fg='black',
    command=duistar

)
btn4.place(x=230, y=70, width=200, height=50)

mw.mainloop()
``
标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!