Python Forum
Please advice Linux library - tray icon, popup windows, ICQ/Skype style etc
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Please advice Linux library - tray icon, popup windows, ICQ/Skype style etc
#1
Hello,

I am decent at text-only Python but never did any real work on GUI. And now I need to use Python (v3, probably) to create some lightweigt notifier and chat thingies. They will need to run under Linux and need to be able to work well in both Gnome and KDE; other platforms are not a priority.

I need to implement:

- A tray icon. It needs to display under KDE and Gnome (I think FreeDesktop.org is acceptable as KDE supports it natively and Gnome has an extension for it)

- a "mouseover" popup for the tray icon

- Popup windows that just appear on top of other stuff, when the program is minimized and has an icon in the tray (for notifications)

- Finally, and this is less of a priority right now, an ICQ/Skype style "contact list" UI. Ideally I'd love to have sample code for that so I can extend it to implement the necessary custom chat backend. But I could also DIY it.

So, what GUI library should I be looking at? The "Gnome_KDE tray icon" thing might be the decider, but not sure.
Reply
#2
The new wxpython phoenix can do that, see: https://wxpython.org/Phoenix/docs/html/w...rIcon.html
https://stackoverflow.com/questions/6389...ith-python
https://forum.kde.org/viewtopic.php?f=289&t=129380
Reply
#3
Tbanks! But as far as I am aware Phoenix is not released. Is it stable enough? And do I end up depending on the user grabbing some random version from pypi?
Reply
#4
It's been released dfor quite some time now. I've written a couple of applications with it, and there are some very desirable features such as drag and drop,
auto window resizing etc that I find make the whole package.

I suggest installing it (rather painless) and the source as well see: https://python-forum.io/Thread-wxPython-...ep-by-step
then run demo.py in the demo sub directory. Each and every demo is backed with source code already visible on a notebook tab. I findĀ  it very
useful for trying new things.

I really like Qt, but fear it is becoming too commercialized, and heading for a day when a community edition will no longer be available.
Reply
#5
Thouhg I use KDE, I expect to have a Gnome-leaning userbase for whatever I develop, so I would like to avoid a Qt dependency, despite being perfectly fine with the GPL.

I have installed Phoenix on Fedora from their Copr repository and it loads in both Python2 and Python3. So now I got the code from git (without building it) and demo.py does work.

Thanks - I'll try pushing on in this direction. I was thinking wxPythin, but I don't want to be using Python2 because of Unicode issues.
Reply
#6
Take a look at the new wx.lib.agw.aui class. There is some demo code here: https://wxpython.org/Phoenix/docs/html/w...ib.agw.aui
it adds a ton of functionality that is usually wanted in most applications with a minimal amount of code.
It is 100% python.
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
Exclamation [PyQt] Setting icon on QAction from outside QGuiApplication gradlon93 3 1,677 Jan-04-2023, 11:37 AM
Last Post: gradlon93
  [PyQt] Hover over highlighted text and open popup window DrakeSoft 2 1,446 Oct-29-2022, 04:30 PM
Last Post: DrakeSoft
  PyQt6 QAction with icon and string malonn 2 1,617 Sep-12-2022, 11:59 AM
Last Post: malonn
  [Tkinter] GUI Style Oshadha 3 1,392 Jun-30-2022, 05:05 PM
Last Post: Larz60+
  how to remove icon ilyess68ysl 4 3,581 Oct-15-2021, 10:05 AM
Last Post: ilyess68ysl
  Icon in tkinter menator01 8 4,842 May-03-2020, 02:01 PM
Last Post: wuf
  POPUP on widget Entry taratata2020 4 3,672 Mar-10-2020, 05:04 PM
Last Post: taratata2020
  Python + GTK + AppIndicator3 tray submenu Icon nodefive 5 4,780 Dec-03-2019, 01:23 PM
Last Post: Axel_Erfurt
  [Tkinter] Password Reveal Icon Evil_Patrick 2 4,586 Nov-29-2019, 02:20 PM
Last Post: Evil_Patrick
  [Tkinter] Window Icon Evil_Patrick 6 7,978 Oct-18-2019, 11:26 AM
Last Post: Evil_Patrick

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020