View Single Post
Old 04-03-2011, 12:01 PM   #3
silentguy
Connoisseur
silentguy doesn't littersilentguy doesn't littersilentguy doesn't litter
 
Posts: 88
Karma: 200
Join Date: Nov 2010
Location: Dortmund, Germany
Device: Kindle Paperwhite (10. Generation)
I already figured out that I should put my image into the calibreConfig\resources\images folder (doing that by hand works) to load it with I(), but I still have not managed to get my plugin to put it's image there (e.g. I'm looking for a variable that contains this path).

Alternatively I would use the get_icons() function given in the document you are talking about, but there are no good examples where to use them in a device plugin cause call device plugins i know are written by you meaning the images are already contained in the installation. The obvious places for me were __init__ or initialize but it seems those get called to early, cause get_icons uses stuff from Qt and the methods are called before the qt windows in constructed.
silentguy is offline   Reply With Quote