Differences between revisions 1 and 2
Revision 1 as of 2020-12-16 14:15:11
Size: 1848
Editor: Ecco
Comment:
Revision 2 as of 2020-12-16 14:15:27
Size: 1905
Editor: Ecco
Comment:
Deletions are marked like this. Additions are marked like this.
Line 1: Line 1:
## page was renamed from TextCtrlAutoComplete (Phoenix)

How to create a task bar icon (Phoenix)

Keywords : Task bar icon.

Introduction :

Some applications are placed on a taskbar. It is an area on a panel usually at the right bottom of the screen. They are represented by a small icon. They are specialized programs designed to do some specific task. Common examples are a clock, sound mixer, language switcher. They are also called applets. In wxPython we have a

TaskbarIcon class for creating such applets.

The constructor does not take any parameters.

wx.adv import TaskBarIcon as TaskBarIcon

Available methods

Destroy()

destroys a taskbaricon object

SetIcon(wx.Icon icon, string tooltip)

sets an icon with optional tooltip

IsIconInstalled()

checks if the icon is set

IsOk()

checks if the object is created

RemoveIcon()

removes the icon

PopupMenu(wx.Menu menu)

pops up a menu


Demonstrating :

Tested py3.x, wx4.x and Win10.

Are you ready to use some samples ? ;)

Test, modify, correct, complete, improve and share your discoveries ! (!)


Sample one

img_sample_one.png

Toggle line numbers
   1 # sample_one.py


Download source

source.zip


Additional Information

Link :

- - - - -

https://wiki.wxpython.org/TitleIndex

https://docs.wxpython.org/


Thanks to

Jan Bodnar (sample_one.py coding), the wxPython community...


About this page

Date(d/m/y) Person (bot) Comments :

16/12/20 - Ecco (Created page for wxPython Phoenix).


Comments

- blah, blah, blah....

How to create a task bar icon (Phoenix) (last edited 2020-12-28 14:29:04 by Ecco)

NOTE: To edit pages in this wiki you must be a member of the TrustedEditorsGroup.