Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. Visual Studio
  4. How to disable console window when running a Python GUI program

How to disable console window when running a Python GUI program

Scheduled Pinned Locked Moved Visual Studio
csharppythonvisual-studiotutorial
4 Posts 2 Posters 19 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • U Offline
    U Offline
    User 12941702
    wrote on last edited by
    #1

    I used Visual Studio with Python to make a simple GUI and when I ran my program I saw the GUI but I also saw the black console window which I don't want. Was wondering if anyone knows how to disable that.

    L 1 Reply Last reply
    0
    • U User 12941702

      I used Visual Studio with Python to make a simple GUI and when I ran my program I saw the GUI but I also saw the black console window which I don't want. Was wondering if anyone knows how to disable that.

      L Offline
      L Offline
      Lost User
      wrote on last edited by
      #2

      Is a setting in VS. Go to project, properties, it'll be somewhere there.

      Bastard Programmer from Hell :suss: If you can't read my code, try converting it here[^] "If you just follow the bacon Eddy, wherever it leads you, then you won't have to think about politics." -- Some Bell.

      U 1 Reply Last reply
      0
      • L Lost User

        Is a setting in VS. Go to project, properties, it'll be somewhere there.

        Bastard Programmer from Hell :suss: If you can't read my code, try converting it here[^] "If you just follow the bacon Eddy, wherever it leads you, then you won't have to think about politics." -- Some Bell.

        U Offline
        U Offline
        User 12941702
        wrote on last edited by
        #3

        I don't see it. There is a check box labeled Windows Application but even when I check that sometimes that black console windows shows.

        L 1 Reply Last reply
        0
        • U User 12941702

          I don't see it. There is a check box labeled Windows Application but even when I check that sometimes that black console windows shows.

          L Offline
          L Offline
          Lost User
          wrote on last edited by
          #4

          Member 12974235 wrote:

          sometimes that black console windows shows.

          "Sometimes"? So, not every time it runs? Are you executing other applications from your project? Also check if there's anything executed in the post-build (also part of the projects' properties, see build-tab).

          Bastard Programmer from Hell :suss: If you can't read my code, try converting it here[^] "If you just follow the bacon Eddy, wherever it leads you, then you won't have to think about politics." -- Some Bell.

          1 Reply Last reply
          0
          Reply
          • Reply as topic
          Log in to reply
          • Oldest to Newest
          • Newest to Oldest
          • Most Votes


          • Login

          • Don't have an account? Register

          • Login or register to search.
          • First post
            Last post
          0
          • Categories
          • Recent
          • Tags
          • Popular
          • World
          • Users
          • Groups