View Single Post
Old 04-03-2011, 10:52 AM   #1
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)
Icon for device plugin?

Hi!
I wrote a device plugin for the oyo aa while back, and I just thought that I'd give adding an icon a go. All my attempts failed.

Can't get it to work with get_icons in __init__ or initialize cause it tells "QPixmap: Must construct a QApplication before a QPaintDevice"

Then I thought it's just extract the image there and define it with icon = I('oyo.png') in the header, but that fails mainly due to me not really knowing where to extract it to.

which approach would be best and you you tell me what I'm doing wrong? Extracting only once would probably be more efficent but only if the code is not called every time...
silentguy is offline   Reply With Quote