0
How to make pictures in python program
1 Resposta
+ 4
Hi, I am not sure if your questions is to include the pictures in python or to create a gallery program in Python. Anyway, in both cases, you should know how to add the image in Python. To add the image in Python, just use the PIL library (Python Image Library) and import the image library specifically (if you only want to use that section of the library). Then, open the image file by providing the URL of the image and store that on the variable. Then use the variable name and the show function. Here is an example of the code:
from PIL import Image
myImage = Image.open("your_image_here");
myImage.show();
There are many other ways, more ways ca be found here:
https://www.sololearn.com/en/Discuss/2499517/how-to-insert-image-in-python
https://www.askpython.com/python/examples/display-images-using-python
Hope this helps.