Python 3 media (images,sound) help/libraries needed
I managed to open an image through going through some old questions. I am
a N00B in python with less than a week of experience. I want to be able to
open images and sound in python 3. So far my code for opening and image is
more of a shortcut to open the file through my non-default image viewer. I
have no idea what libs in python 3 work for sound and which are best. what
libs should I get? Also i there a way to open the file IN python?
#-------------------------------------------------------------------------------
# Name: Image Opener
# Purpose: Opening Images
#
# Author: Dark Ariel7
#
# Created: 08/08/2013
# Copyright: (c) Dark Ariel7 2013
# Licence: I take no responsability for anything.
#-------------------------------------------------------------------------------
from PIL import Image
img = Image.open(r"C:\Users\Dark Ariel7\Desktop\Logo.jpg")
img.show()
Also as a tangent question doesn't importing all of these random libraries
make it less compatible? If I send this to someone with a basic python
install it will not play right? How do people get around this? To make
thing platform independent and such
No comments:
Post a Comment