wxPython - question

Tom Plunket tomas at fancy.org
Thu Jul 10 21:12:55 EDT 2003


Artur M. Piwko wrote:

> How can I remove program entry from taskbar (not tray)?

By reading the docs and using the right flags.  :)

(I've been using wx for two weeks.)

in wxFrame:

wxFRAME_NO_TASKBAR - Creates an otherwise normal frame but it
      does not appear in the taskbar under Windows (note that it
      will minimize to the desktop window which may seem strange
      to the users and thus it might be better to use this style
      only without wxMINIMIZE_BOX style). Has no effect under
      other platforms.  

so-

from wxPython.wx import *

class MyFrame(wxFrame):
   def __init__(self):
      style = wxDEFAULT_FRAME_STYLE | wxFRAME_NO_TASKBAR

      wxFrame.__init__(self, None, -1, "Taskbar?", style=style)

if __name__ == "__main__":
   a = wxPySimpleApp()
   w = MyFrame()
   w.Show()
   a.MainLoop()

-tom!




More information about the Python-list mailing list