How to minimize the window

A

Austin

I wrote a GUI program with wxPython.
In the window, there are 3 attributes on left top.
"_" could let the program to minimize to tool bar.
I want to let the program minimized to the system tray.
Is there any way to let the window have 4 attributes?
"." "_" "O " "x"
 
S

Steve Holden

Austin said:
I wrote a GUI program with wxPython.
In the window, there are 3 attributes on left top.
"_" could let the program to minimize to tool bar.
I want to let the program minimized to the system tray.
Is there any way to let the window have 4 attributes?
"." "_" "O " "x"
These features of window behavior are normally handled by the Windows or
X Window window manager code. Though you can reach behind the interface
and change them, it might be easier simply to have a "Migrate to System
Tray" button inside your system's GUI. This could toggle to "Normal
Iconisation" when the window only appeared int he system tray.

Or, you could do what the Windows Task Manager does, and provide both a
standard icon *and* a system tray icon.

Noticed you seem to be pretty new to c.l.py, so while I have your
attention: welcome aboard!

regards
Steve
 
V

vincent wehren

|I wrote a GUI program with wxPython.
| In the window, there are 3 attributes on left top.
| "_" could let the program to minimize to tool bar.
| I want to let the program minimized to the system tray.

You can take look at "Main.py" in the wx Demo.

Look for "class DemoTaskBarIcon(wx.TaskBarIcon)" and how it is
used in the "wxPythonDemo" class.

| Is there any way to let the window have 4 attributes?
| "." "_" "O " "x"

Not that I know of.

HTH,
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,777
Messages
2,569,604
Members
45,234
Latest member
SkyeWeems

Latest Threads

Top