How to minimize the window

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Austin

    #1

    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"


  • vincent wehren

    #2
    Re: How to minimize the window

    "Austin" <austin@maxtron ic.com.tw> schrieb im Newsbeitrag
    news:d3fu6s$5ek $1@netnews.hine t.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 "wxPythonDe mo" class.

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

    Not that I know of.

    HTH,
    --

    Vincent Wehren



    Comment

    • Steve Holden

      #3
      Re: How to minimize the window

      Austin wrote:[color=blue]
      > 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"
      >
      >[/color]
      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/

      Comment

      Working...