Tools to develop a multi-ad screen with Python

Hi all!

I would like to build a tool with Python that allows me to show on the screen multiple static ads / videos (the screen can be divided in 4, 5, 7 parts or similar).

The application will run on a Raspberry Pi connected to the tv and it will simple show the content of a specific folder (I'll put there 1.jpg, 2.3gp, 4.png and so on and those will populate the slices of monitor available)

Which kind of tool you suggest me to learn and use for the job?

Who is Participating?

[Product update] Infrastructure Analysis Tool is now available with Business Accounts.Learn More

I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

Maidine FouadEngineerCommented:
pygame will help you accomplish this, its used for video's games , very simple and straight forward

Sample Code that shows some pictures :

import pygame, sys

screen = pygame.display.set_mode((700,500))
images = []
show = 0
clock = pygame.time.Clock()
while True:
   for event in pygame.event.get():
      if event.type == pygame.QUIT:
      if event.type == pygame.KEYDOWN:
         if event.key == pygame.K_ESCAPE:
         if event.key == pygame.K_SPACE:
            show = (show + 1) % len(images)
   screen.blit(images[show], (0 , 0))

Open in new window

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
ltpittAuthor Commented:
Thanks for the suggestion: I'll check it out
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today

From novice to tech pro — start learning today.