Programming Forums
User Name Password Register
 

RSS Feed
FORUM INDEX | TODAY'S POSTS | UNANSWERED THREADS | ADVANCED SEARCH

Reply
 
Thread Tools Display Modes
Old May 3rd, 2006, 10:34 PM   #1
demon101
Hobbyist Programmer
 
demon101's Avatar
 
Join Date: Mar 2006
Location: westboro, ohio
Posts: 160
Rep Power: 0 demon101 is an unknown quantity at this point
Send a message via Yahoo to demon101
adding images

when you make a program can you add images to it?

if you can where would i look for a code?
__________________
Demon101 Production's

Code Forums
demon101 is offline   Reply With Quote
Old May 3rd, 2006, 11:19 PM   #2
Sane
Programming Guru
 
Sane's Avatar
 
Join Date: Apr 2005
Location: Waterloo, Ontario
Posts: 2,086
Rep Power: 6 Sane will become famous soon enough
Send a message via MSN to Sane
Download Pygame

import pygame

# initiate pygame
pygame.init()

# create screen
screen = pygame.display.set_mode((300,300))

# load image
image = pygame.image.load("my_image.bmp")

# draw image
screen.blit(image, (0, 0))

# update screen
pygame.display.flip()
Sane is offline   Reply With Quote
Old May 4th, 2006, 10:48 AM   #3
Dietrich
Professional Programmer
 
Dietrich's Avatar
 
Join Date: Feb 2005
Posts: 434
Rep Power: 4 Dietrich is on a distinguished road
Now you are talking about GUI (Graphical User Interface) programming. You have to look under Tkinter, wxPython, pyGTK or similar GUI tools. A related tool is PIL (Python Image Library) that can be used in conjunction with a GUI. These are the kind of tools that can handle images.
__________________
I looked it up on the Intergnats!
Dietrich is offline   Reply With Quote
Old May 4th, 2006, 8:57 PM   #4
demon101
Hobbyist Programmer
 
demon101's Avatar
 
Join Date: Mar 2006
Location: westboro, ohio
Posts: 160
Rep Power: 0 demon101 is an unknown quantity at this point
Send a message via Yahoo to demon101
ok ty you both for the help
__________________
Demon101 Production's

Code Forums
demon101 is offline   Reply With Quote
Reply

Bookmarks

« Previous Thread in Forum | Next Thread in Forum »

Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump




DaniWeb IT Discussion Community
All times are GMT -5. The time now is 3:00 AM.

Powered by vBulletin® Version 3.7.0, Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Copyright ©2007 DaniWeb® LLC