wxPython - question

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Artur M. Piwko

    wxPython - question

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

    Artur

    --
    Before the Goat of Mendes... we all must take our turn | Artur M. Piwko
    Into the magic circle... where still the fire burns | mailto:s/_/./
    We're spinning round and round... until one takes a fall | -- Mercyful Fate
    The fallen one will not return, the fallen one must burn | "Witches' Dance"
  • Tom Plunket

    #2
    Re: wxPython - question

    Artur M. Piwko wrote:
    [color=blue]
    > How can I remove program entry from taskbar (not tray)?[/color]

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

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

    in wxFrame:

    wxFRAME_NO_TASK BAR - 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_TASK BAR

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

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

    -tom!

    Comment

    • Artur M. Piwko

      #3
      Re: wxPython - question

      In the darkest hour on Thu, 10 Jul 2003 18:12:55 -0700,
      Tom Plunket <[email protected] g> screamed:[color=blue]
      > By reading the docs and using the right flags. :)
      >
      > (I've been using wx for two weeks.)
      >[/color]

      Me - 2 days (-;
      [color=blue]
      > wxFRAME_NO_TASK BAR - Creates an otherwise normal frame but it
      >[/color]

      Thanks. I was looking for function and this is a style...
      I am fighting right now with setting/resetting this flag on live frame.

      Artur

      --
      Before the Goat of Mendes... we all must take our turn | Artur M. Piwko
      Into the magic circle... where still the fire burns | mailto:s/_/./
      We're spinning round and round... until one takes a fall | -- Mercyful Fate
      The fallen one will not return, the fallen one must burn | "Witches' Dance"

      Comment

      • David C. Fox

        #4
        Re: wxPython - question

        Artur M. Piwko wrote:[color=blue]
        > In the darkest hour on Thu, 10 Jul 2003 18:12:55 -0700,
        > Tom Plunket <[email protected] g> screamed:
        >[color=green]
        >>By reading the docs and using the right flags. :)
        >>
        >>(I've been using wx for two weeks.)
        >>[/color]
        >
        >
        > Me - 2 days (-;
        >
        >[color=green]
        >>wxFRAME_NO_TA SKBAR - Creates an otherwise normal frame but it
        >>[/color]
        >
        >
        > Thanks. I was looking for function and this is a style...
        > I am fighting right now with setting/resetting this flag on live frame.
        >
        > Artur
        >[/color]

        I don't know about this one in particular, but there are very few styles
        which can be reset after the window is created. You might consider
        creating a new frame with the appropriate style when you want to switch
        to a different style.

        David

        Comment

        • Tim Roberts

          #5
          Re: wxPython - question

          "Artur M. Piwko" <pipen@beast_tu _kielce.pl> wrote:
          [color=blue]
          >How can I remove program entry from taskbar (not tray)?[/color]

          PLEASE resist the temptation to built Yet Another Tray Application. Win32
          programmers seem to use the tray icons as a sign of their guruness, and
          every one of them seems to think that his application is so studly that it
          must occupy permanent real estate on my desktop. I've seen some trays that
          bloat to 20 or 30 icons.

          Don't do it. Your application just isn't that important. If you need to
          notify me of something, I find nothing wrong with a good old-fashioned
          dialog box.
          --
          - Tim Roberts, [email protected]
          Providenza & Boekelheide, Inc.

          Comment

          • Tim Roberts

            #6
            Re: wxPython - question

            "Artur M. Piwko" <pipen@beast_tu _kielce.pl> wrote:[color=blue]
            >
            >In the darkest hour on Sat, 12 Jul 2003 21:55:39 -0700,
            >Tim Roberts <[email protected] > screamed:
            >[color=green][color=darkred]
            >>>How can I remove program entry from taskbar (not tray)?[/color]
            >>
            >> PLEASE resist the temptation to built Yet Another Tray Application. Win32
            >> programmers seem to use the tray icons as a sign of their guruness, and
            >> every one of them seems to think that his application is so studly that it
            >> must occupy permanent real estate on my desktop. I've seen some trays that
            >> bloat to 20 or 30 icons.
            >>
            >> Don't do it. Your application just isn't that important. If you need to
            >> notify me of something, I find nothing wrong with a good old-fashioned
            >> dialog box.[/color]
            >
            >I am writing Jabber/others messenger. In this case, tray icon is not a sign of
            >guruness, but user friendliness.[/color]

            I disagree. That is strictly a matter of opinion.

            Now, a tray icon that does not exist until some actionable event occurs is
            probably a very natural UI, but the same thing could be achieved by
            plopping up a dialog box. Even if I am running your messenger, yours is
            not the only application I'm running by a long shot.
            --
            - Tim Roberts, [email protected]
            Providenza & Boekelheide, Inc.

            Comment

            • Artur M. Piwko

              #7
              Re: wxPython - question

              In the darkest hour on Mon, 14 Jul 2003 22:13:20 -0700,
              Tim Roberts <[email protected] > screamed:[color=blue][color=green]
              >>I am writing Jabber/others messenger. In this case, tray icon is not a sign of
              >>guruness, but user friendliness.[/color]
              >
              > I disagree. That is strictly a matter of opinion.
              >
              > Now, a tray icon that does not exist until some actionable event occurs is
              > probably a very natural UI, but the same thing could be achieved by
              > plopping up a dialog box. Even if I am running your messenger, yours is
              > not the only application I'm running by a long shot.
              >[/color]

              And all this is the matter of user configuration.

              Artur

              --
              Before the Goat of Mendes... we all must take our turn | Artur M. Piwko
              Into the magic circle... where still the fire burns | mailto:s/_/./
              We're spinning round and round... until one takes a fall | -- Mercyful Fate
              The fallen one will not return, the fallen one must burn | "Witches' Dance"

              Comment

              • Tom Plunket

                #8
                Re: wxPython - question

                JanC wrote:
                [color=blue][color=green]
                > > but the same thing could be achieved by plopping up a dialog box.[/color]
                >
                > That's why almost everybody is using a pop-up stopper these days.[/color]

                Heh no doubt. I love nothing more than furiously coding away on
                something, a dialog pops up from somewhere, and the next <space>
                that I type dismisses the dialog before I even notice it on
                screen.

                -tom!

                --
                There's really no reason to send a copy of your
                followup to my email address, so please don't.

                Comment

                Working...