title: Module subprocess has no attribute 'STARTF_USESHOWWINDOW'
body: <p>Hi Stack Overflow users,</p>
  
  <p>I've encountered a frustrating problem, can't find the answer to it.</p>
  
  <p>Yesterday I was trying to find a way to HIDE a subprocess.Popen. So for example, if i was opening the cmd. I would like it to be hidden, permanently.</p>
  
  <p>I found this code:</p>
  
  <pre><code>kwargs = {}
  if subprocess.mswindows:
       su = subprocess.STARTUPINFO()
       su.dwFlags |= subprocess.STARTF_USESHOWWINDOW
       su.wShowWindow = subprocess.SW_HIDE
       kwargs['startupinfo'] = su 
  subprocess.Popen("cmd.exe", **kwargs)
  </code></pre>
  
  <p>It worked like a charm!</p>
  
  <p>But today, for reasons I don't need to get into, I had to reinstall python 3 (32bit)</p>
  
  <p>Now, when I run my program I get this error:</p>
  
  <pre><code>Traceback (most recent call last):
    File "C:\Python31\hello.py", line 7, in &lt;module&gt;
      su.dwFlags |= subprocess.STARTF_USESHOWWINDOW
  AttributeError: 'module' object has no attribute 'STARTF_USESHOWWINDOW'
  </code></pre>
  
  <p>I'm using 32bit, python3.1.3 ... just like before.</p>
  
  <p>If you have any clues/alternatives PLEASE post, thanks.</p>
  
  <p>NOTE: I am looking for a SHORT method to hide the app, not like two pages of code please</p>