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