473,587 Members | 2,487 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

A cross platform systray icon

Does anyone have some hints / tips / experience with making a cross
platform systray icon? It should work on Windows, Gnome and KDE at
minimum.

I've seen the win32all code which is very similar to the C code I've
written before for Windows. It would be a small irritation to have to
integrate its event loop with whichever GUI framework I'm using for
the rest of it though.

I don't know how to make a systray under KDE/Gnome though, but I think
freedesktop has made it a lot easier now. I didn't manage to find a
python example - does anyone have one?

Ideally I'd like someone to tell me that PyQT, tkinter or PyGTK does
it all for me, but from my searching on the subject I doubt it is
going to be that easy!

Thanks
--
Nick Craig-Wood <ni**@craig-wood.com-- http://www.craig-wood.com/nick
Sep 11 '06 #1
4 2122

Nick Craig-Wood wrote:
Does anyone have some hints / tips / experience with making a cross
platform systray icon? It should work on Windows, Gnome and KDE at
minimum.

I've seen the win32all code which is very similar to the C code I've
written before for Windows. It would be a small irritation to have to
integrate its event loop with whichever GUI framework I'm using for
the rest of it though.
You might do a search for TaskBarIcon in the wxPython toolkit.

Duane

Sep 11 '06 #2
Nick Craig-Wood wrote:
Does anyone have some hints / tips / experience with making a cross
platform systray icon? It should work on Windows, Gnome and KDE at
minimum.

I've seen the win32all code which is very similar to the C code I've
written before for Windows. It would be a small irritation to have to
integrate its event loop with whichever GUI framework I'm using for
the rest of it though.

I don't know how to make a systray under KDE/Gnome though, but I think
freedesktop has made it a lot easier now. I didn't manage to find a
python example - does anyone have one?

Ideally I'd like someone to tell me that PyQT, tkinter or PyGTK does
it all for me, but from my searching on the subject I doubt it is
going to be that easy!

Thanks
Google turned this up.

http://radio.weblogs.com/0110159/gems/systray_py.txt

Hope it helps.

-Larry
Sep 11 '06 #3
Larry Bates <la*********@we bsafe.comwrote:
Google turned this up.

http://radio.weblogs.com/0110159/gems/systray_py.txt
I couldn't get that to work - wxwindows bitrot maybe?

I did find an example which worked under windows & linux

http://aspn.activestate.com/ASPN/Coo.../Recipe/475155

Thanks anyway

--
Nick Craig-Wood <ni**@craig-wood.com-- http://www.craig-wood.com/nick
Sep 11 '06 #4
TheSeeker <du***********@ gmail.comwrote:
Nick Craig-Wood wrote:
Does anyone have some hints / tips / experience with making a cross
platform systray icon? It should work on Windows, Gnome and KDE at
minimum.
You might do a search for TaskBarIcon in the wxPython toolkit.
Yes thank you (and everyone else) who replied with that - that looks
like just the thing.

I was able to create a systray icon that worked under linux and
windows which is great!

Now to learn wxpython ;-)

Thanks

--
Nick Craig-Wood <ni**@craig-wood.com-- http://www.craig-wood.com/nick
Sep 11 '06 #5

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

6
9907
by: Action | last post by:
I can add a systray icon in normal windows application... but when i do it in windows service, the systray icon just don't show up is that because i don't have any "component" to contain the systray icon? please give direction... thx
4
491
by: mario | last post by:
How to put an application in systray with F1 or any shortcut button?
1
4151
by: Christoph Engelhardt | last post by:
Hi newsgroup, What I intend to do: Write a small programm, that will add a new Button to every Window right beside the Buttons for minimizing, maximizing and closing the window in the window's titlebar. When this button is clicked the window itself should be minimized to the systray On my way there I found hardly any example via Google that suited my needs. All I know about already is how to get all windows in VB.Net ( which
3
2102
by: Erik Greene | last post by:
I have written an application that contains a notifyicon that will not dispose or end when Windows shutsdown. I have seen other posts where people are experiencing the same issue (see post in the csharp group), so I know that this is an issues for others as well. Does anyone know how to capture the Windows Exit/Shutdown event?
0
1822
by: kapcreations | last post by:
I have a system tray app which gets the status of a windows service, and displays the appropriate icon for the status of the service in the systray. the problem I am having is the icon disapears under certain conditions, but the exe is still listed in the processes leading me to believe the app is still running. It fires up perfectly on boot, however if the user logs off, and then logs back in (not reboot), or if the system goes to...
9
6002
by: Rotzooi | last post by:
Hi, I have a VB.NET Service application that's running fine under the Local System account. But for configuration purposes I don't want to be dependent on modifying the registry manually or using an seperate application (like I do now). I want to implement a system tray icon when someone logs on to the console. I've tried several samples but I can't get the icon to the system tray. I know there are some issues because the logged on...
0
1507
by: dirvine | last post by:
Hi All Does anyone have any peice of wxPython code thats cross platform and allows an app to be minimised in the system tray. I am hoping for windows/kde/gnome/darwin if possible. I have been playing about and have a couple of systems that nearly get there but not quite. I would llike to create an app that does this in the way limewire/skype etc. do it
8
2649
by: Rob R. Ainscough | last post by:
I have a VS 2005 Windows Service with a Installer project as part of my solution. The Service installs fine but I can't seem to make either of these work: 1. Have the service start after install 2. Have the service interact with the SysTray In my ProjectInstaller.vb Private Sub ServiceInstaller1_AfterInstall(ByVal sender As
2
1882
by: Arvi | last post by:
Hello, Im quite new to c# windows application. i need to write a application which stays on the systray and listens to the SQL Table. (when the value is inserted as 0 - done thru Dataset and check it every2 seconds?) i need to open another application thru command prompt and pass the parametes of the DB and alert the user. how this can be done?
0
7923
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
8216
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
8349
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
7974
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
6629
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
0
5395
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
3882
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
2364
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
0
1192
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.