def setupKDE(app, wnd): try: icons = KIconLoader() systray = KSystemTray(wnd) systray.setPixmap(icons.loadIcon("kedit", 1)) QToolTip.add(systray, "PyQLogger - Blogger GUI") systray.show() except Exception, inst: sys.stderr.write("setupKDE: cannot set tray, exception: %s\n" % inst)
def _setupTray(app, wnd): try: icons = KIconLoader() systray = KSystemTray(wnd["Class"]) p = QPixmap() p.loadFromData(icon) systray.setPixmap(p) QToolTip.add(systray, "PyQLogger - Blogger GUI") systray.show() wnd["Impl"].systray = systray except Exception, inst: sys.stderr.write( "setupKDE: cannot set tray, exception: %s\n" % inst)