In this video I'll show you how to drive lines, rectangles, and ovals with the tKinter Canvas widget. With the Canvas Widget, we can do ...
In this video I'll show you how to drive lines, rectangles, and ovals with the tKinter Canvas widget.
With the Canvas Widget, we can do all sorts of cool things. In this intro to the canvas video, I'll walk you through drawing basic shapes; lines, rectangles, squares, ovals, and circles.
We''ll talk a little about the canvas coordinate system and discuss the X,Y axis and how to use it.
How to Draw Lines and Shapes With Canvas - Python Tkinter GUI Tutorial #68
Video and Tutorial canva tutorial From YouTube
How to Draw Lines and Shapes With Canvas - Python Tkinter GUI Tutorial #68
Video and Tutorial Total Views : How to Draw Lines and Shapes With Canvas - Python Tkinter GUI Tutorial #68 From YouTube
28393
Video and Tutorial Rating : How to Draw Lines and Shapes With Canvas - Python Tkinter GUI Tutorial #68 From YouTube
4.91
Video and Tutorial Date : How to Draw Lines and Shapes With Canvas - Python Tkinter GUI Tutorial #68 From YouTube
2020-05-12 17:01:38
The Video and Tutorial Duration : How to Draw Lines and Shapes With Canvas - Python Tkinter GUI Tutorial #68 From YouTube
00:14:26
Video and Tutorial Maker Name for : How to Draw Lines and Shapes With Canvas - Python Tkinter GUI Tutorial #68 From YouTube
Codemy.com Channel
How many people who likes video and tutorial : How to Draw Lines and Shapes With Canvas - Python Tkinter GUI Tutorial #68 From YouTube
629
Related Keyword of How to Draw Lines and Shapes With Canvas - Python Tkinter GUI Tutorial #68 From YouTube
tkinter canvas widget,tkinter canvas rectangle,tkinter canvas draw line,tkinter canvas,tkinter canvas line,tkinter canvas oval,tkinter canvas circle,tkinter canvas elipse,python tkinter canvas tutorial,python tkinter canvas line,python tkinter canvas examples,python tkinter canvas background color,python tkinter canvas draw circle,python tkinter canvas parameters,python tkinter canvas,tkinter canvas coordinates,python tkinter gui,tkinter playlist
Video and Tutorial Link for How to Draw Lines and Shapes With Canvas - Python Tkinter GUI Tutorial #68 From YouTube
https://www.youtube.com/watch?v=HrK9Kmz3_9A
Image of How to Draw Lines and Shapes With Canvas - Python Tkinter GUI Tutorial #68 From YouTube
How to Draw Lines and Shapes With Canvas - Python Tkinter GUI Tutorial #68
Thank you, great Tutorial! I did some testing and got confused with the cordinate-system.
ردحذفY-axis goes down not up! So 0, 0 is the point at the top left corner not bottom left corner
▶️ Watch Entire Tkinter Playlist ✅ Subscribe To My YouTube Channel:
ردحذفhttp://bit.ly/2UFLKgj http://bit.ly/2IGzvOR
▶️ See More At: ✅ Join My Facebook Group:
https://Codemy.com http://bit.ly/2GFmOBz
▶️ Learn to Code at https://Codemy.com ✅ Buy a Codemy T-Shirt!
Take $30 off with coupon code: youtube1 http://bit.ly/2VC9WUN
I have one problem : I want to draw a line on canvas of python tkinter which appears slowly on screen. I tried time.sleep to delay the process of drawing the line point by point but it does not work. The program on execution waits for some time and abruptly draws the line.
ردحذفI also tried "after" option which also does not work.
Request you to suggest me some solution.
My code as below :
# Code - draw line slowly
import time
from tkinter import *
mw = Tk()
mw.minsize( width=600,height=600)
mc = Canvas(mw, width=500, height=500, background = "white")
mc.place(x=50, y = 0)
stline = 0
for i in range ( 0,400):
mc.create_line(stline,100,i,100)
stline = i
time.sleep(0.001)
mc.mainloop()
How can i make curve lines
ردحذفCodes to draw a red line and says "Now let's run it."
ردحذفCut to commercial for computer game with super cool graphics.
Me: holy shit!
How do you position the square
ردحذفwhen I write-
ردحذفmy_canvas.create_line(0,300,200,100, fill = "red)
it shows an error written as 'nonetype' object has no attribute 'create_line
You are, by far, the coolest YouTube python teacher.....I mean your way of speaking and way of teaching is impeccable.Your endeavors are self rewarding. Anyone with no knowledge of programming can understand what does a certain line of code mean if s/he watches your video. Best of Luck man...Loved it....
ردحذفthis is really lit, thanks a lot!
ردحذفhow to add a Label right Next to the canvas created? Like as Select File: Canvas Shape(ex:Rectangle) and next a Browse Button next to it
ردحذفYour coordinate system (as illustrated at 4:24 and after) is upside down. The origin is in the upper left corner, not lower left. If you create a line from (0,0) to (200, 100), for example, it starts in the upper left corner and goes down and to the right. It didn't affect any of your examples, since they're all vertically symmetric about the middle of the canvas.
ردحذفJohn, thanks for this and all of your Tkinter videos.
ردحذفOne thing...
There appears to be an error in one important part of the explanation.
The origin of the coordinate system is not lower left but rather
upper left. Positive y is down.
(Also see comment by Joseph Lopez)
This can be demonstrated by adding another rectangle to the code:
my_canvas.create_rectangle(50,50,250,0,fill="green")
the will result in a green rectangle above the existing pink rectangle.
After seeing this, and not understanding why, I googled
"Tkinter The Canvas Coordinate System" and came across this explanation from:
https://docstore.mik.ua/orelly/perl3/tk/ch09_02.htm
"The x coordinates behave normally: the larger coordinates are to the right
and the smaller ones are to the left.
The y coordinates look like they have been drinking vodka:
the larger y coordinates are on the bottom rather than on the top,
because the (0, 0) point is in the upper-left corner.
Although it is rare, you can use negative coordinates in a Canvas."
Best regards
Awesome
ردحذفthanks for the video. how do you drawing line at the runtime . ie using mouse drawing straight line (similar to autocad line tool). Thanks.
ردحذفI just learned the pygame graph systeme and now I need to learn another one
ردحذفSir please can you tell me that how to make qr generator
ردحذفThats what i need! I was huge confused about canvas and now my topic has cleared. Thank you so much sir ❤❤❤
ردحذفThank you very much for all tutorials in the paid package do you have libusb, os module and Django covered?
ردحذفhi, can you record the video for Scrolling multiple window, not list, just window (with class). for example: I have one window with many buttons, So it needs Scroll. When I click on any buttons, I i pop up to a new window and it need to scroll there as well. In any case, you are the best <3
ردحذفGlad the the co-ordinate system has 0,0 at the bottom left. Oppps not true.
ردحذفThank you
ردحذفLiked subscribed and shared, not just coz your great but also look a lot like one of best friends.
ردحذفIs the coordinate system platform or system dependent? I'm doing mine on Windows 10 on Python 3.8 and my 0,0 seems to be in the top left of the canvas when I experimented with different numbers.
ردحذفThats really good . Could you make program like somthing whick exactly work program .it is like your geography porgram.
ردحذفGreat content man keep it up!
ردحذفExcuse me me Jhon elder from codemy.com where I can get all your courses for a one time fee of 27 dollars ( which is insanely cheap) , do you offer a completion certificate for your courses and is there a course on python fundamentals it self ? ( also I hope you got the joke in the beginning lol )
ردحذفWould you like to make a playlist of c++ gui programming.
ردحذفNice stuff! You deserve a lot more views! We should really help each other.
ردحذف