Change line color : Canvas : Tkinker PYTHON TUTORIALS


PYTHON TUTORIALS » Tkinker » Canvas »

 

Change line color


Change line color
from Tkinter import *
     
canvas = Canvas(width=300, height=300, bg='white')
canvas.pack(expand=YES, fill=BOTH)                
     
canvas.create_line(0300150150, width=10, fill='green')
     
     
widget = Label(canvas, text='AAA', fg='white', bg='black')
widget.pack()
canvas.create_window(100100, window=widget)     
mainloop()



Leave a Comment / Note


 
Verification is used to prevent unwanted posts (spam). .


PYTHON TUTORIALS

 Navioo Tkinker
» Canvas