I’m creating a game in which you have to guess the result of an operation in a certain time; to do this i created a thread to have a timed input and then I close the thread after the time is up. Issue My problem is that when the user doesn’t enter any number, before the time is up, in
Tag: windows
“Edit with IDLE” not showing with a .pyw file
I recently changed Python version, but “Edit with IDLE” was not shown when you right clicked on a Python file. So I headed down into Regedit and changed this: In both Python.FileShellEdit …
How can I run a Python project on another computer without installing anything on it?
I have a Python Project that has a bunch of dependencies (in my VirtualEnv). I need to run my project in my school computer for Demonstration. My School computer does not have python installed, and …
Running python script in python shell from a windows batch file
I’m trying to run a python script “index.py” in python shell from a .bat file on windows. I tried this first script but it will only open my script in the Python UI without running it : @…
Running an executable in a child directory from parent directory windows
I have the current file structure in a folder with nothing else in it: (folder) crypt (file) run.bat I’m on Windows and I’m trying to execute a python.exe with run.bat that is in the crypt folder. …
Parse screeninfo into useable csv
I am tryin to parse a string from screeninfo to be useable in a csv file. here is my code import csv from screeninfo import get_monitors with open(‘MultiMonitor.csv’, ‘w’) as csvfile: csvwriter = …
Python logging failes with log-file on network drive (windows 10)
I want to log using python’s logging module to a file on a network drive. My problem is that the logging fails at some random point giving me this error: — Logging error — Traceback (most recent …
Using conda build to build win32 and win64 packages in 1 go
My pure python scripts are 32 bits or 64 bits agnostic but my dependencies are not. I want to use cython to speed up some functions making the package not pure python. And I want to use them on …
How to make pop-up window with force attention in Tkinter
I want to create a window which doesn’t allow the user to access other windows until you give an input. I tried win.attribute(“ontop”, True) but it allows the user to access other windows. or is there any function like a force_focus_lock() in Tkinter python 3.8 which doesn’t allow other window to get focus until you […]
Pip is selecting wrong path
I’m using windows 10 and I got rid of python 3.8 and installed 3.7 as the only python version on my system. When trying to install libraries using pip I now get the error: when I checked in the console which -a pip I got: Now when I look for Python in my variable path […]