Results 1 to 3 of 3

Thread: [wxPython] Can't load menu icons

  1. #1
    Join Date
    May 2008
    Beans
    1,029

    [wxPython] Can't load menu icons

    I've tried following this tutorial to create icons for menus. But when I start the program I get this error:
    Can't load image from file 'stock_exit-16.png': file does not exist.
    I can't find any other tutorials on how to access the stock icons for Gtk+ with wxPython. Does anyone have any advice or know of a good tutorial?

  2. #2
    Join Date
    Oct 2007
    Beans
    74

    Re: [wxPython] Can't load menu icons

    I really doubt that that image is part of the wxPython library. I imagine that when they say the word 'stock' they are referring to a generic image for a stop icon, not something specific to wxPython. You should try loading an image that you know exists.

  3. #3
    Join Date
    May 2008
    Beans
    1,029

    Re: [wxPython] Can't load menu icons

    For some reason it's not working when I point to a specific image. The error doesn't pop up, but there is still no icon in the menu. Does the image need to be a specific resolution?

    Edit: Okay, menu icons were disabled on my system. But I still have to point to an absolute filename ("/usr/share/icons/Human/16x16/stock/generic/stock_exit.png") to get it to work in my program. Is there a set of default icons for wxPython or Gtk?
    Last edited by dodle; April 10th, 2010 at 04:24 AM.

Tags for this Thread

Bookmarks

Posting Permissions

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