[wxPython] Frame not appearing in taskbar

RE: [wxPython] Frame not appearing in taskbar
Hi Lars,

Briefly: Take a look at the Demo. It does most of what you’re asking in the main wrapper interface. You have to additionally alter init to stop it from showing the window at startup, and you may have to override things like minimize and close events to get the exact operation you want. You don’t need to use a wxFRAME_TOOL_WINDOW to achieve this either.

That’s enough to set you in the right direction. If you want to be really lazy, I’ve got half a complete program that I could strip right down to the bare essentials, but you’d probably learn a lot more figuring it out yourself :wink:

Give me a shout if you want to see some hard code.

Regards

Steve

···

-----Original Message-----

From: Lars von Wedel [mailto:vonWedel@lfpt.rwth-aachen.de]

Sent: 04 March 2002 12:45

To: wxpython-users@lists.wxwindows.org

Subject: [wxPython] Frame not appearing in taskbar

Hi,

I was wondering how I could setup a frame using wxPython 2.3.2

that does not have one of the usual taskbar entries with just

appears but uses a wxTaskBarIcon() and an associated menu next to

the clock.

I tried to use the wxFRAME_TOOL_WINDOW for creating the frame,

but then, there is no system menu or minimize entry anymore…

Anyone knows help?

Lars

`

=========================================================

This electronic message contains information from the mmO2 plc Group

which may be privileged or confidential. The information is intended to be

for the use of the individual(s) or entity named above. If you are not the

intended recipient be aware that any disclosure, copying, distribution or

use of the contents of this information is prohibited. If you have received

this electronic message in error, please notify us by telephone or email

(to the numbers or address above) immediately.

=========================================================

`

Hi,

well, actually I looked at the Demo and I saw how to put the small
taskbar icon with a menu next to the clock, no problem with that.

Briefly: Take a look at the Demo. It does most of what you're asking
in the main wrapper interface. You have to additionally alter __init__
to stop it from showing the window at startup, and you may have to
override things like minimize and close events to get the exact
operation you want. You don't need to use a wxFRAME_TOOL_WINDOW to
achieve this either.
From the description it seemed to me that using wxFRAME_TOOL_WINDOW

or wxFRAME_NO_TASKBAR is far easier than twiddling around with all
kinds of operations.

So you suggest to install a minimize handler to hide the window?

Looks like a possible alternative.

Thanks for the idea,
Lars

So you suggest to install a minimize handler to hide the window?

Looks like a possible alternative.

That's the way it is usually done. While the window is visible you have an
item in the taskbar so you can switch to it normally, but instead of
minimizing you just do a Hide() and then the taskbar item dissapears. In
the handler for the icon in the tray you do a Show() to bring it back.

···

--
Robin Dunn
Software Craftsman
robin@AllDunn.com Java give you jitters?
http://wxPython.org Relax with wxPython!