# text设置按钮的文本内容,并设置组件的横,纵坐标
tk.Label(root, text='十进制数 \t').place(x=50, y=20)
tk.Label(root, text='...高度bg颜色 textvariable是关联对象,控制组件文本发生更改时跟着改变
tk.Label(root, width=20, height=1, bg='white', textvariable=..., y=80)
tk.Label(root, width=20, height=1, bg='white', textvariable=obj2).place(x=180, y=110)
# 创建一个按钮...组件左上角的纵坐标
width 组件的宽度
height 组件的高度
Entry()
参数 含义
width 设置文本框宽度
bg 设置背景色
font 设置字体的样式和大小
textvariable...控制文本在该对象更改时跟着改变.
以上就是用thinker库制作一个进制转换器并打包exe的教程,如果有改进的建议欢迎在评论区留言奥~
欢迎各位来访,一起交流学习python