Draw rectangle with filled color,rectanglefilled,from Tkinter
Draw rectangle with filled color,rectanglefilled,from Tkinter
from Tkinter import *canvas = Canvas(width=300, height=300, bg='white')canvas.pack(expand=YES, fill=BOTH) canvas.create_rectangle(20, 20, 300, 300, width=5, fill='red')mainloop()
相关内容
- Printing ASCII,printingascii,i = 0while i
- Here are two ways to write a table of squares and cubes,squarescube
- Log print message into a file,logmessage,import syspr
- Use list as a stack: push onto stack,stackonto,L = []L.appe
- Zip three tuples,zipthreetuples,T1, T2, T3 =
- in a range,inrange,from math im
- apply function,apply,def func(x,
- keeps '\' (Back splash) literally,splashliterally,x
- Specifying exception type,,# try: nu
- Use mouse to draw a shape on canvas,shapecanvas,from Tkinter
评论关闭