การใช้งาน Python GUI (Tkinter) : Color Chooser Dialog (ตัวเลือกสี)
โพสต์แล้ว: 01/03/2018 5:07 pm
การใช้งาน Python GUI (Tkinter) : Color Chooser Dialog (ตัวเลือกสี) เป็นการสร้างหน้าต่างที่สามารถกดเลือกสีได้
ตัวอย่าง
ผลรัน
ตัวอย่าง
โค้ด: เลือกทั้งหมด
from Tkinter import *
from tkColorChooser import askcolor
def getColor():
color = askcolor()
print color
Button(text='Select Color', command=getColor).pack()
mainloop()