hey, i am now trying to make it but i installed pillow in cmd and when i try my project from when all the buttons and canvas are there(in vid i am on 15:16) it says that it does not know "PIL". i am also not using your program i am using the actual app 'python' for this. does it change in python that it does not know 'PIL' or is it just me?
Try to make sure it installed correctly. I would do the steps below (if you are on Windows and PyCharm): 1. go to settings Ctrl + Alt + S 2. Select Project: "Your Project Name" 3. Select Python Interpreter 4. Double click on pip 5. Type in "package name" in the search bar 6. Finally download the package at the bottom left
Great video as always, my suggestion is instead of importing PIL separately, do something like from PIL import Image as pilImage For various reasons I can understand why you would want to be able to call PIL.Image however. Most notably, The zen of python "explicit is better than implicit".
I'm kind of new to Python so if someone can explain the theory behind this I would really appreciate it. Why does he create a class to encapsulate the whole paint program? I thought classes were meant to be used as blueprints to create instances of objects. Couldn't he have put the whole code into a def PaintGui() function?
Well, yeah, you are right, but a class is a data structure that can contain both variables and functions in a single entity. While you could create a function called PaintGui(), classes are just more neater. 👍
Just brought your books and omg they are so good I have learnt so much in such a small book and am confident i can do it on my own 10/10
Man you are the real MVP
Your videos are so easy to follow and understand. Thank you for your work!
Greetings from Romania!
Dude's a python Jesus dropping sick projects left and right, selling Python Bible
Great video.
I'm gonna expand upon this to include features that I think are good/necessary for the program.
Thanks.
This is really cool 😌. Thanks
hey, i am now trying to make it but i installed pillow in cmd and when i try my project from when all the buttons and canvas are there(in vid i am on 15:16) it says that it does not know "PIL". i am also not using your program i am using the actual app 'python' for this. does it change in python that it does not know 'PIL' or is it just me?
Try to make sure it installed correctly. I would do the steps below (if you are on Windows and PyCharm):
1. go to settings Ctrl + Alt + S
2. Select Project: "Your Project Name"
3. Select Python Interpreter
4. Double click on pip
5. Type in "package name" in the search bar
6. Finally download the package at the bottom left
Wonderfull proyect!
о вы из англии
Hi, In your future videos can you please minimize or close the terminal window? It gives easier visibility.
Can u create any management system with database connection and explain
it could be good
Danke sehr!
Thank really helped alot!
Great video as always, my suggestion is instead of importing PIL separately, do something like from PIL import Image as pilImage
For various reasons I can understand why you would want to be able to call PIL.Image however. Most notably, The zen of python "explicit is better than implicit".
cant you say import PIL.Image and use the Image module as
img = PIL.Image.new("RGB" ...etc)
LET'S GET TO 100K
Can you make clone of zoom using kivy
And in which we can send our camera and audio data
Why are u using pycharm ?
why not?
I'm kind of new to Python so if someone can explain the theory behind this I would really appreciate it. Why does he create a class to encapsulate the whole paint program? I thought classes were meant to be used as blueprints to create instances of objects. Couldn't he have put the whole code into a def PaintGui() function?
Well, yeah, you are right, but a class is a data structure that can contain both variables and functions in a single entity. While you could create a function called PaintGui(), classes are just more neater. 👍
Sir make a video on google map clone with python
Please explain more
Where is the code.
Shown in the video. Copy pasting is a bad idea to learn things
@@NeuralNine It's needed if somebody gets lost.
awsome
put it on your github sir
I love the intro
import paint
Thank me later
First 🥇 😜
Nope
kids
@@alien_X1 😹😹 so funny can't stop laughing
line 57
self.draw.rectangle([x1, y1, x2 + self.brush_width, y2 + self.brush_width], ....
To avoid error message "Expected type 'tuple[float, float, float, float] | tuple[tuple[float, float], tuple[float, fioat]l', got 'list[Int Any]' instead"
Use ( ) instead of [ ] as below
self.draw.rectangle((x1, y1, x2 + self.brush_width, y2 + self.brush_width),.....
same for line 62