[PyKDE] dcop program
hi, I am doing a little application that can be controlled via dcop. so far everything else works, but I am unable to set the application name without pid number appearing to the end of it automaticly (with dash). so in dcop list, instead of myapp I see myapp-5422 for example. otherwise that would be ok, but as I want to control my application remotely, I need to know the name of it and now it's different every time I login. is there a way to force pid not to appear there? and why does it actually appear? I only run one instance of it. thanks! p.s. this is what I use to set the application name in first place: aboutdata = KAboutData(klik, klik, 3.3) KCmdLineArgs.init(sys.argv, aboutdata) .b -- http://www.kulma.org :: http://orange.blender.org ___ PyKDE mailing listPyKDE@mats.imk.fraunhofer.de http://mats.imk.fraunhofer.de/mailman/listinfo/pykde
Re: [PyKDE] Windows systray application
Rob Knapp kirjoitti viestissään (lähetysaika tiistai, 28. kesäkuuta 2005 17:26): AFAIK, QT doesn't currently have a class that allows this. You will need to use the win32api call SHELL_NOTIFYICON to create the icon, and then I used the winEvent (I think, it's been about 2 years) to capture the incoming WM_ messages. thanks for the reply! I tried but I just don't have enough experience on doing things like this. the API thing is where I get confused. and I don't really know how I should send or receive these calls.. but then I managed to find pywin32 (windows extensions for python) example on doing this exact thing. so now I have it working, but thru pywin32. I would've wanted to just use QT for this, but atleast it works. now I have icon, and right-click menu even on the tray, and click there opens up my QT interface. thanks again, maybe in future it will be easier to do straight in QT too.. (and just maybe, after staring 2 weeks at the source of this pywin32 example, I could try to convert it to QT functions.. dont know. heh.) .b ___ PyKDE mailing listPyKDE@mats.imk.fraunhofer.de http://mats.imk.fraunhofer.de/mailman/listinfo/pykde
[PyKDE] Windows systray application
Hi, I've been hunting for two days now a way to create an application with PyQT (on winXP), that will hide itself on systray. only things I found was some references to WM_ messages and winEventFilters.. but no real example what that means. and some references on QT examples of icontray-program.. but that was outdated, and I couldn't make it work in python.. so, is there anyone that has managed to do this? and how? all information highly appreciated. thanks. .b ___ PyKDE mailing listPyKDE@mats.imk.fraunhofer.de http://mats.imk.fraunhofer.de/mailman/listinfo/pykde