Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

Python Tkinter Canvas Widget

from tkinter import *
master = Tk()
w = Canvas(master, width=40, height=60)
w.pack()
canvas_height=20
canvas_width=200
y = int(canvas_height / 2)
w.create_line(0, y, canvas_width, y )
mainloop()
Source by softhunt.net #
 
PREVIOUS NEXT
Tagged: #Python #Tkinter #Canvas #Widget
ADD COMMENT
Topic
Name
3+7 =