#1
  1. No Profile Picture
    Registered User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Jan 2005
    Posts
    4
    Rep Power
    0

    How to remove console screen?


    I'm writing small programs with IDLE in WinXP. When a program with Tkinter GUI is being run, the annoying DOS screen is still appeared in background. I don't know how to remove it. How to make a Python program with GUI run without this black ugly screen (like IDLE which is claimed to be written in pure Python)?
  2. #2
  3. No Profile Picture
    Contributing User
    Devshed Novice (500 - 999 posts)

    Join Date
    Nov 2003
    Posts
    624
    Rep Power
    34
    Try renaming the .py file to .pyw and it should be launched by "pythonw.exe" which doesn't show the command prompt window.
  4. #3
  5. No Profile Picture
    Registered User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Jan 2005
    Posts
    4
    Rep Power
    0
    Great!
    Thx

IMN logo majestic logo threadwatch logo seochat tools logo