Python精灵模块的askcolor指令

所有命令 单独命令 屏幕命令 角色命令

单独命令 >> Python精灵模块的askcolor颜色对话框指令

简介:askcolor是tkinter中的一个命令,用于调出颜色对话框,返回二元组。
例子:
from sprites import *

screen = Screen()
bug = Sprite()
t = askcolor()
ft = ('',22,'normal')
bug.write(t,align='center',font=ft)
screen.mainloop()
writed by lixingqiu 关注"异编程"微信公众号,获取更多关于Python精灵模块的咨讯: