Learn to Program 25 Python Paint App

preview_player
Показать описание


In the final part of my TkInter tutorial I make a complete Python Paint app in one video. We'll make a Python paint app, cover TkInter canvas, catching mouse events, and drawing with a pencil, lines, arcs, ovals, rectangles, text and much more.

Thank you to Patreon supports like the following for helping me make this video

@kyleaisho
@thetwistedhat
vjFaLk
Рекомендации по теме
Комментарии
Автор

Your videos are great and very clear, concise and non of the normal preamble and self glorification that some video teachers feel they must justify themselves with for the first 10 mins of their Tutorials. Viewers want to learn and your videos do just that Derek. Many thanks mate, keep up the good work.

fjonesjones
Автор

"Wow wow wow wow wow wow"

LOL, that really cracked me up for some reason.

goku
Автор

You have the most organized, easy to understand, entertaining vidoes I
have ever seen. Not to mention the abundance of topics. It blows my mind
what you are doing. I will be referring you to all my friends and any
one i meet who wants to learn IT related topics.

jonesjustin
Автор

i am seeing this 4 years late but still it works and my parents are impressed by this project when i showed them.

rajsinghchauhan
Автор

thanks for your time and i hope everyone who watched had some fun and alsotook advantage of this tutorial and helped them

aliberro
Автор

Instead of using lot of if else statement to pick your drawing tool you can use a dictionary and after that by using key just run the function :

self.function_dict = {'pencil': self.pencil_draw, 'line' : self.line_draw, 'rectangle' : self.rectangle_draw, 'arc' : self.arc_draw, 'oval' : self.oval_draw}


adssadasddasads
Автор

Best Python tutorial on Youtube! Keep up the good work!
Will you do machine learning videos in the future?

MrDecasept
Автор

You're the best, I watch a lot of your videos while on lunch or break at work! Keep it up please!

Chords_
Автор

awesome!
just what i needed for my homework assignment!
thanks for all your awesome tutorials, they've helped me alot over the last 2 years learning programming basics :D

jarontimmerman
Автор

Part 2 of this gna be cool :D you could have a text input for custom text and save button etc ?

Автор

@derek_banas it says 'left_but_down is not defined' please help me

CharCaryt
Автор

Ahhh haa awesome you covering other packages like TkInter not only GUI other ones Derek?

buggyworm
Автор

Can you please tell me how I use this paint application within my displayed images. Means I want to draw outlines of my displayed images.

swetadey
Автор

You should have created buttons that w'd call a function for changing tools.
I tried this

def __init__(self, root):
drawing_area = Canvas(root)

drawing_area.bind("<Motion>", self.motion)
drawing_area.bind("<ButtonPress-1>", self.left_but_down)
drawing_area.bind("<ButtonRelease-1>", self.left_but_up)
a = Button(root, text='arc', command=self.arctool, bg='green').pack(side=LEFT)
a = Button(root, text='rectangle', command=self.recttool, bg='red').pack(side=LEFT)
a = Button(root, text='line', command=self.linetool, bg='blue').pack(side=LEFT)
a = Button(root, text='oval', command=self.ovaltool, bg='yellow').pack(side=LEFT)

def arctool(self):

self.drawing_tool = "arc"
def recttool(self):

self.drawing_tool = "rectangle"
def linetool(self):

self.drawing_tool = "line"
def ovaltool(self):

self.drawing_tool = "oval"
Regards, Atta

attaulmomin
Автор

I try to check most of tutorial on youtube by far ur the best. tnx

abinetalemu
Автор

Suggestion for the next few videos: Erlang, Elixir :)

krq
Автор

Thanks for the excellent tutorial. While copying and pasting the contents between def rectangle_draw(self, event=None): and def text_draw(self, event=None):, I accidentally left the outline=green', width=2 in the syntax.

After getting an error and removing outline='green', from the def text_draw... function, the program ran but the text was printing vertically, on the canvas. I don't know if its a bug or not but if the width= is set above 0 the text prints vertically and width=0 will print the text horizontally. Just my 5 cents.

tonyiguru
Автор

How can i make in the same manner a triangle? Thank You! I'm really struggling doing this, but i don't know how....

ioanabraslasu
Автор

Great tutorial as always! Can't wait for the PyQt videos :)

MRECoelho
Автор

Great stuff, Derek! Keep it up! May I have a question? Are you going to make some new C# tutorials for begginers or advanced? :)

andrewlerion