Reload this Page PyGTK image bkg w/ widgets on top

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • stevemcc
    New Member
    • Sep 2007
    • 3

    Reload this Page PyGTK image bkg w/ widgets on top

    I am trying to make a game using pygtk. It requires that there be an image in the background and widgets that can go in front of the image. I have tried defining a background image for the Mainwindow but cant seem to do that and I have tried to pack widgets into an image but gtk.Image does not have the add attribute. What approach should I be taking?
  • mythcat
    New Member
    • Jul 2006
    • 3

    #2
    man ! try something like pygame or module Image on PIL
    this is a example :
    Code:
    import PIL 
    import Image 
    from PIL import *
    img = Image.open("name_image.bmp")
    img.load()
    the module PIL is here

    Comment

    Working...