中年大叔
发表于 2020-3-31 15:36:39
very good one.
Vincentish
发表于 2020-4-5 22:26:14
import tkinter as tk
import ctypes
ctypes.windll.shcore.SetProcessDpiAwareness(1)
ScaleFactor=ctypes.windll.shcore.GetScaleFactorForDevice(0)
top_level = tk.Tk()
top_level.tk.call('tk', 'scaling', ScaleFactor/75)
top_level.title('test')
the_Label = tk.Label(top_level, text = '我的第二个窗口程序!', font = '华文中宋', padx = 30, pady = 50)
the_Label.pack()
top_level.mainloop()
豆苗冲呀
发表于 2020-4-11 22:56:02
不得不说,您真是才华横溢
zhao076513
发表于 2020-5-7 15:29:22
哪位大神知道Label中可不可以设置数字和字母的上下标?
猫山上没有雪
发表于 2020-5-8 10:13:35
yooyle 发表于 2016-5-29 14:06
插入图片失败了,_tkinter.TclError: couldn't recognize data in image file。图片的格式是对的!
图片必须是gif格式的,不能单纯的更改后缀名,这样也是无法识别的~
胡天赐啊
发表于 2020-6-7 10:38:23
学习学习
三季人
发表于 2020-6-12 17:13:20
python学习之路任重而道远啊
sddsm
发表于 2020-6-16 19:22:26
鸡汤不加盐 发表于 2016-1-14 22:06
我照着这个输入但是结果却是
AttributeError: 'module' object has no attribute 'TK'
"TK"应该是"Tk"
mayaren888
发表于 2020-7-16 12:20:23
不错支持楼主发这种帖子!!!
风尘岁月
发表于 2020-7-24 20:21:46
GUI比爬虫难多了{:10_285:}
嘻哈嘿呵耶
发表于 2020-8-25 16:34:05
谢谢小甲鱼
wrw5192
发表于 2020-9-6 16:23:25
选项有些太多了,只能用的时候查,记住最常用的
YouMeng
发表于 2020-10-26 16:29:10
鸡汤不加盐 发表于 2016-1-14 22:06
我照着这个输入但是结果却是
AttributeError: 'module' object has no attribute 'TK'
emmm,我能说那个Tk的k不是大写么
小伤口
发表于 2020-12-23 17:58:06
无条件支持小甲鱼{:9_232:}
tss333
发表于 2021-1-27 12:11:01
感謝魚大大
jh997
发表于 2021-4-13 08:58:48
有点男
ttttian
发表于 2021-8-9 17:12:24
插入图片失败了,_tkinter.TclError: couldn't recognize data in image file。图片的格式是对的!
老甲鱼真黄
发表于 2021-8-24 10:42:56
吐了,没钱寸步难行
ettemichael
发表于 2021-9-9 09:30:26
水个贴,攒攒币,有钱就开python课
Jackie_kk
发表于 2022-2-17 17:10:18
{:10_254:}
页:
1
2
3
4
5
6
7
8
[9]
10