Thread: images

    #1
  1. No Profile Picture
    Contributing User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Jul 2004
    Posts
    58
    Rep Power
    10

    images


    im kinda new but... what is the code to just put an image into
    the program? Or does anyone know of a tutorial there is.
  2. #2
  3. No Profile Picture
    Contributing User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Dec 2001
    Location
    Houston, TX
    Posts
    383
    Rep Power
    13
    Originally Posted by evilbeefcake
    im kinda new but... what is the code to just put an image into
    the program? Or does anyone know of a tutorial there is.
    Put it where?
    Debian - because life's too short for worrying.
    Best. (Python.) IRC bot. ever.
  4. #3
  5. No Profile Picture
    Contributing User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Jul 2004
    Posts
    58
    Rep Power
    10
    to put an image into a small program in idle. Is there a way to do it?
    So there would be text then an
    image would just pop up on the next line
    --------image goes here---------
  6. #4
  7. No Profile Picture
    Contributing User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Jan 2004
    Posts
    84
    Rep Power
    11
    to use any graphical elements (like images, buttons, etc) you need to use a GUI package like Tkinter or wxWindows. Tkinter is the standard that is distributed with Python, so you can play with that without having to dl/install any third party software. check http://docs.python.org/lib/module-Tkinter.html for the documentation. There's also a link to a text by Fredrik Lundh called "An Introduction to Tkinter" which is a good resource.
  8. #5
  9. Mini me.
    Devshed Novice (500 - 999 posts)

    Join Date
    Nov 2003
    Location
    Cambridge, UK
    Posts
    783
    Rep Power
    13
    It sounds to me like you need the Tkinter Canvas widget.

    You should be able to create a window that mixes text a images with that.

    grim

IMN logo majestic logo threadwatch logo seochat tools logo