py2app console

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

    #1

    py2app console

    Hello,

    Does anyone know of the most straightforward way to get rid of the
    intensely annoying "console" window that py2app feels so compelled to
    create?

    On a related but less important note, why would anyone want that stupid
    window in the first place?

    James
  • James Stroud

    #2
    Re: py2app console

    James Stroud wrote:
    Hello,
    >
    Does anyone know of the most straightforward way to get rid of the
    intensely annoying "console" window that py2app feels so compelled to
    create?
    >
    On a related but less important note, why would anyone want that stupid
    window in the first place?
    >
    James
    I should mention that this is the ridiculously pointless Tcl shell
    created when deploying a TkAqua application with py2app. Surely there
    has to be a better place to practice one's Tcl programming than from the
    console window of a bundled application that would otherwise be fit for
    end-users--except for the stupid Tcl console that no one will bother to
    use but is just frickin' desktop clutter.

    ## This is not the stdout console of the shell terminal, etc. ##

    James

    Comment

    • Dave Opstad

      #3
      Re: py2app console

      In article <P9sUg.1250$NE6 .423@newssvr11. news.prodigy.co m>,
      James Stroud <jstroud@mbi.uc la.eduwrote:
      Does anyone know of the most straightforward way to get rid of the
      intensely annoying "console" window that py2app feels so compelled to
      create?
      I include this code in my apps:

      if (sys.platform != "win32") and hasattr(sys, 'frozen'):
      root.tk.call('c onsole', 'hide')

      That hides the console in py2app applications.

      Dave

      Comment

      • James Stroud

        #4
        Re: py2app console

        Dave Opstad wrote:
        In article <P9sUg.1250$NE6 .423@newssvr11. news.prodigy.co m>,
        James Stroud <jstroud@mbi.uc la.eduwrote:
        >
        >Does anyone know of the most straightforward way to get rid of the
        >intensely annoying "console" window that py2app feels so compelled to
        >create?
        >
        I include this code in my apps:
        >
        if (sys.platform != "win32") and hasattr(sys, 'frozen'):
        root.tk.call('c onsole', 'hide')
        >
        That hides the console in py2app applications.
        >
        Dave
        Yes! Thank you! I just now have gotten a chance to try it. It works
        beautifully and simply.

        Again, many thanks for your help!

        James

        Comment

        Working...