Differences between revisions 2 and 3
Revision 2 as of 2020-12-16 14:15:27
Size: 1905
Editor: Ecco
Comment:
Revision 3 as of 2020-12-16 14:24:32
Size: 1896
Editor: Ecco
Comment:
Deletions are marked like this. Additions are marked like this.
Line 1: Line 1:
## page was renamed from TextCtrlAutoComplete (Phoenix)
Line 8: Line 7:
Some applications are placed on a taskbar.  Some applications are placed on a taskbar.
Line 10: Line 10:
Line 11: Line 12:
Line 12: Line 14:
Line 13: Line 16:
They are also called applets. In wxPython we have a
Line 15: Line 17:
{{{TaskbarIcon}}} class for creating such applets.  They are also called applets.

In wxPython we have a
{{{TaskbarIcon}}} class for creating such applets.
Line 29: Line 33:


(info by '''JanBodnar / zetcode''').
Line 44: Line 51:

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

(info by JanBodnar / zetcode).


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.