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.
|