473,394 Members | 1,840 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,394 software developers and data experts.

How to minimize the window

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"
Jul 18 '05 #1
2 4726
"Austin" <au****@maxtronic.com.tw> schrieb im Newsbeitrag
news:d3**********@netnews.hinet.net...
|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,
--

Vincent Wehren

Jul 18 '05 #2
Austin wrote:
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
--
Steve Holden +1 703 861 4237 +1 800 494 3119
Holden Web LLC http://www.holdenweb.com/
Python Web Programming http://pydish.holdenweb.com/

Jul 18 '05 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
by: Erik Bethke | last post by:
Hello All, I now have a wx.NO_BORDER frame that I have written dragging code for... I like my window this way as it looks sleeker and I am now installing some image buttons. Now I would like...
1
by: Prashant Joshi | last post by:
Hi all, I am using javascript to open a popup window. Is there any way we can disable the minimize button in this window? The maximize button is disabled. I want the same for the minimize button....
3
by: Maka Sili | last post by:
Hi, My VC++ application does not have a titlebar (and therefore no System menu, no minimize, no maximize and no close button). We have a custom button for minimize and close. When the app...
0
by: Latha Rajeev | last post by:
Hello, I have an aspx page, and i want to trap the window minimize event(clicking the minimize button in the title bar of window) in my client side javascript code. I thought that the window...
2
by: tony | last post by:
Hello! I have a mainManu where I can chose to display some window forms. When the mainMenu is minimized I need to minimize every window form that is started from the mainMenu. So I need to...
0
by: =?Utf-8?B?U2VudGhpbCBTdWJyYW1hbmlhbg==?= | last post by:
Our requirement is to run the vb dot net application in minimize mode with system tray icon in the remote machine (remote desktop). When we running in the remote desktop window is showing in...
4
by: EmilH | last post by:
Hi, Can anybody show me how to minimize/maximize a window dynamically? I placed buttons for each of these commands and want to place the code which will minimize and maximize the window. ...
3
by: Jimmy | last post by:
I'm kinda newbie to python and wxPython. Now I'm confronting a thorny problem: how can I make my program minimize to the taskbar represented as an ico, and when there is some message from network...
5
by: =?Utf-8?B?SmFtZXMgV29uZw==?= | last post by:
Dear all, I'd like to know if there is any method to minimize command mode window when a console program is running. In my case, there are several console programs which run periodically in...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.