Questions tagged [pythonw]
82 questions
0
votes
3 answers
Python code problem, application has been destroyed Tcl error
I am making a Tkinter GUI to do nothing except call images - and of course, I have struggled to find decent tkinter documentation all along.
There is a line of my code which cannot seem to do as asked - I want to call up all the values in a…

Jordan
- 1
- 1
- 1
0
votes
0 answers
Shebang line and batch files for pythonw to run background process
I normally use the following shebang line and batch file format for my scripts on Windows 10
#!python
@py c:path\to\script.py %*
How must I change these to run pythonw?
Thanks

Thanos Dodd
- 572
- 1
- 4
- 14
0
votes
1 answer
.pyw program crashes upon execution, works as normal .py
I have a python program that I want to run without the console popping up. Naturally I went for a .pyw file to hide the console. However I noticed that after converting the file to a .pyw file. It would crash immediately upon executing.
I have…

Middie
- 15
- 2
0
votes
1 answer
Changed the version of python, but not reflected in pythonw
I am trying to change the version of python that I'm running.
When i do python -V, it says 3.6 but if i do pythonw -V it is still running 3.7.
For this application, I need to run pythonw.
Is there a way to roll this back to use 3.6 (using OSX)?

Brittney
- 1
- 1
0
votes
1 answer
python 3.6.6 tkinter crashes in cmd, works in idle
I have a code block that works in idle, but not in cmd or double-clicking the file. For some reason, importing tkinter causes the following error.
Traceback (most recent call last):
File "C:\path\main.pyw", line 20, in
import tkinter…

Tyler Silva
- 411
- 6
- 14
0
votes
2 answers
How to open a terminal to accept user input while running a script in pythonw.exe
I am working with Python3.7.0 on a Windows 10 machine.
I have a program that runs every 5 minutes through task scheduler and if certain parameters are met (it is a given time of day), I require user input. Otherwise, the program is ended.
Every 5…

HellsMayo
- 1
- 2
0
votes
0 answers
My Python program doesn't seem to work when executed with pythonw.exe because of imports
I'm trying to launch a basic python (loop.pyw file) program via the pythonw.exe program just to see in my task manager if the python script is really executing itself.
Here's the program :
import traceback
import os
try:
from stem import…

spmegaman
- 1
- 2
0
votes
1 answer
Import selenium-webdriver by importing his whole files
I know it sounds wierd, but I want to import the module Selenium-Webdriver by importing each file of him separated meaning - I want to import the module without writing :
from selenium import webdriver
But, by writing something like that :
import…

omersk2
- 79
- 1
- 11
0
votes
1 answer
pyw file opens visual studio instead of running the program
So I have a .pyw file, default program to open it is pythonw.exe, but instead when I run it it opens visual studio. Maybe a behind the scenes error?
Program was set up in the task scheduler with highest permissions to access hosts file in windows.…

letto4135
- 23
- 8
0
votes
1 answer
how to run python 'pyw' file in Windows 10 process
Good Day All,
I finished writing the site blocker process and then i renamed the "py" file by appending "w", double clicked to run it yet the process did not show up in the task manager. I tried it a few times and yet nothing showed up. Mind you I…

Emeka
- 1
- 1
- 4
0
votes
0 answers
Running PIP install with pythonw makes console scripts use pythonw instead of python
(windows 7 pro, python 2.7, PIP 9.0.1)
During the deployment process of our tools on client workstations, I use pip to install custom python libs. Because of the way it is packaged, I cannot have a pip.exe, so I run the pip module with pythonw to…

Olivier H
- 835
- 2
- 8
- 26
0
votes
0 answers
Pythonw.exe: Can't Find Drive Pop-up
I'm trying to write a program that will detect whether or not a drive exists. The code I have works, but I get an annoying pop-up from PythonW.exe when I run the program.
import os, time, shutil, datetime, re, warnings
while True: #Loop until…

Amaryllis Ninja
- 55
- 5
0
votes
1 answer
Python crashes upon destroying Tkinter window
I'm a student in software development and I'm developing an application (my first application!) in Python for learning purposes.
It works fairly well, and I got almost all of the features working that I want to work.
A short explanation of the…

deWaardt
- 3
- 2
0
votes
1 answer
Python script tkinter resolution and screenshot size effected when running pythonw.exe
I currently have a python script which launches a tkinter GUI instance, with a button that once clicked takes a screenshot.
When I run this script under python.exe, the tkinter resolution is fine and the screenshot captures the whole screen.…

RJ4040
- 31
- 4
0
votes
0 answers
PYW not working
I made a python script that would simple take and save a screenshot when ran. In the tutorial it said if I changed the file extension to .pyw it would still save a screenshot but it is not working. What might I be overlooking? I have it defaulted to…

TarHeel22
- 1
- 1