Commit 589f2712 by BellCodeEditor

auto save

parent 6a73c48a
Showing with 11 additions and 7 deletions
from tkinter import * from tkinter import *
def printStr(): from tkinter import colorchooser
print('hello world') def colorChoose():
windows1=Tk colorTuple=colorchooser.askcolor()
button1=Button(windows1,text='点击我'command=printStr) print('选到颜色为:'coloTuple[0])
button1.pack() print('16进制颜色为:',colorTuple[1])
windows1.mainloop() object1=Tk()
\ No newline at end of file button1=Button(Windows1,text='选色',command=colorChoose)
canvas.pack()
canvas.create_line(30,30,150,150)
object1.mainloop()
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment