×

Discussion Board

Results 1 to 3 of 3
  1. #1
    Registered User
    Join Date
    Jun 2008
    Posts
    28

    How to use "TopWindow.TopWindow.add_image"?

    I don't know how to insert a picture into the window...Help me,please.Thnx very much!

  2. #2
    Super Contributor
    Join Date
    Oct 2007
    Location
    Deva, Romania
    Posts
    3,471

    Re: How to use "TopWindow.TopWindow.add_image"?

    See this article for detailed information.

    Basically you just do it like this:
    Code:
    import TopWindow, graphics
    
    window = TopWindow.TopWindow()
    image = graphics.Image.open("C:\\myimage.jpg") #For example
    window.add_image(image, (20,40))
    #And then specify whatever details you want, as shown in the article
    Last edited by bogdan.galiceanu; 2008-06-18 at 17:45. Reason: Typo in code

  3. #3
    Registered User
    Join Date
    Jun 2008
    Posts
    28

    Re: How to use "TopWindow.TopWindow.add_image"?

    Quote Originally Posted by bogdan.galiceanu View Post
    See this article for detailed information.

    Basically you just do it like this:
    Code:
    import TopWindow, graphics
    
    window = TopWindow.TopWindow()
    image = graphics.Image.open("C:\\myimage.jpg") #For example
    window.add_image(image, (20,40))
    #And then specify whatever details you want, as shown in the article
    the window is shown if show() is called,thnx a lot

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
×