Black window

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

    Black window

    Hi
    i've a problem, i'd like that my application (for winxp) works in background
    in the taskmanager (or in the systray) instead of in a window. How can i do?

    Thanks!


  • Bernd Kaiser

    #2
    Re: Black window

    Gropius wrote:[color=blue]
    > Hi
    > i've a problem, i'd like that my application (for winxp) works in background
    > in the taskmanager (or in the systray) instead of in a window. How can i do?
    >
    > Thanks!
    >
    >[/color]
    Check out py2exe

    Comment

    • Gropius

      #3
      Re: Black window

      > Check out py2exe[color=blue]
      > http://starship.python.net/crew/theller/py2exe/[/color]

      Ok, but i don't understand what to do..


      Comment

      • Alan Gauld

        #4
        Re: Black window

        On Sun, 04 Jul 2004 18:02:00 GMT, "Gropius" <abcdef@ghijl.i t>
        wrote:
        [color=blue]
        > Hi
        > i've a problem, i'd like that my application (for winxp) works in background
        > in the taskmanager (or in the systray) instead of in a window. How can i do?[/color]

        Use pythonw.exe to run it instead pf python.exe.
        But of course any output will be lost! So you might want to run
        it with redirection to a file.

        Alan G.
        Author of the Learn to Program website

        Comment

        • Elbert Lev

          #5
          Re: Black window

          "Gropius" <abcdef@ghijl.i t> wrote in message news:<sCXFc.346 98$GQ3.900006@t wister2.libero. it>...[color=blue]
          > Hi
          > i've a problem, i'd like that my application (for winxp) works in background
          > in the taskmanager (or in the systray) instead of in a window. How can i do?
          >
          > Thanks![/color]

          In Win NT there are 3 ways to do this: run your application as NT
          service, or write a GUI and make the main window hidden. Application
          of the second type will work only if somebody is logged in on station,
          but service will survive logouts.

          L.E.

          Comment

          • Bernd Kaiser

            #6
            Re: Black window

            Windows NT services

            You can build Windows NT services by passing a service keyword argument
            to the setup function, the value must be a list of Python module names
            containing a service class (identified by the _svc_name_ attribute):

            # setup.py
            from distutils.core import setup
            import py2exe

            setup(service=["MyService"])

            The build service executable are able to install and remove themselves
            by calling them with certain command line flags, run the exe with the
            -help argument to find out more.

            Comment

            • Bernd Kaiser

              #7
              Re: Black window

              Windows NT services

              You can build Windows NT services by passing a service keyword argument
              to the setup function, the value must be a list of Python module names
              containing a service class (identified by the _svc_name_ attribute):

              # setup.py
              from distutils.core import setup
              import py2exe

              setup(service=["MyService"])

              The build service executable are able to install and remove themselves
              by calling them with certain command line flags, run the exe with the
              -help argument to find out more.

              Comment

              • Bernd Kaiser

                #8
                Re: Black window

                Gropius wrote:
                [color=blue][color=green]
                >> Check out py2exe
                >> http://starship.python.net/crew/theller/py2exe/[/color]
                >
                > Ok, but i don't understand what to do..
                >
                >[/color]
                Windows NT services

                You can build Windows NT services by passing a service keyword argument
                to the setup function, the value must be a list of Python module names
                containing a service class (identified by the _svc_name_ attribute):

                # setup.py
                from distutils.core import setup
                import py2exe

                setup(service=["MyService"])

                The build service executable are able to install and remove themselves
                by calling them with certain command line flags, run the exe with the
                -help argument to find out more.

                Comment

                • Bernd Kaiser

                  #9
                  Re: Black window

                  Gropius wrote:
                  [color=blue][color=green]
                  >> Check out py2exe
                  >> http://starship.python.net/crew/theller/py2exe/[/color]
                  >
                  > Ok, but i don't understand what to do..
                  >
                  >[/color]
                  Windows NT services

                  You can build Windows NT services by passing a service keyword argument
                  to the setup function, the value must be a list of Python module names
                  containing a service class (identified by the _svc_name_ attribute):

                  # setup.py
                  from distutils.core import setup
                  import py2exe

                  setup(service=["MyService"])

                  The build service executable are able to install and remove themselves
                  by calling them with certain command line flags, run the exe with the
                  -help argument to find out more.

                  Comment

                  Working...