Tagged Questions
-1
votes
3answers
75 views
Find 4 values in window size 6 that satisfy certain criteria and extend until 4 consecutive values do not satisfy . Python
if you have a list of values:
values=['130','90','150','123','133','120','160','180','45','67','55','34','130','120']
and wanted to scan through with a window size of 6 and if 4 out of the 6 were ...
2
votes
2answers
549 views
PyQt Window Focus
I am trying to give focus to a window if the user clicks on another window.
Right now i have two windows: Window A is behind, and Window B is in front. When Window B appears, it disables Window A. ...
0
votes
2answers
73 views
Switching Windows with Python
I'll preface this by saying that I'm very inexperienced with python, and I'm hoping that means the solution to my problem will be simple.
My program will be performing simple actions in another ...
1
vote
1answer
152 views
Python - get X window ID
I'm trying to use Python to get the X window ID of an arbitrary window.
Ideally the script would take the same form as running xwininfo from the shell - allowing the user to click on a window and ...
1
vote
1answer
478 views
Python function to open GTK window/dialog and get some value back from it
I am writing a program that performs some image processing, but needs the user to input some markers on the input images, before the main processing occurs. This is being done with Python/Numpy/Scipy, ...
1
vote
1answer
233 views
Focus Window to CMD Prompt Python
I'm writing a script that (when the enter button is pressed) requires some user input (and I'm just using the raw data input method for now). But I would like to program to automatically switch focus ...
1
vote
1answer
312 views
pexpect output in different window
Now I am working in a project where the testscript has to connect many (3-10) remote computers (SSH and do some stuff).
I started to use the pexpect and it is simple as a button. It works fine.
I ...
1
vote
1answer
865 views
Terminal Window in Windows Using Python
I want to create a window like terminal window or like command prompt for my application using python in windows. I have searched in internet and found some programs. But Its all working in linux and ...
0
votes
1answer
313 views
Python 3 and tkinter opening new window by clicking the button
How do I open a new window when the user clicks a button in Tkinter and Python 3?
0
votes
1answer
84 views
Query window id from python in linux and mac
Is there any way to query window id by window name from python? Something that would work cross-platform perhaps (linux / mac)?
Or even better catch that id when starting a new window directly from ...
0
votes
1answer
89 views
Python doesn't run on Windows with a fatal error
In the command line in Windows, when i try to open a Python file using python filename.py i get this error and then python.exe crashes.
fatal python error py_initialize can't initialize sys standard ...
0
votes
1answer
122 views
What are the parameters for .GetWindow function in python?
I'm kinda new to programming, and I wanna write a simple program that needs to OCR a particular window. Currently, I'm using (w.GetForegroundWindow()), but that gets me the current window which would ...
0
votes
1answer
168 views
Getting mouse presses on a console window for python
Is there some sort of way to get mouse presses on console windows in python? I know you can do this, because if you're running windows you can open up the cmd and type "edit". How would you do this ...
0
votes
1answer
2k views
Selenium - Pop Up window
I am testing the Router UI using selenium. I am using cisco routers. I am pinging a website and the router opens a pop up window showing the Ping statistics. The selenium ide is recording the popup ...
-3
votes
1answer
64 views
Destroying and Recreating a TK Window in Python
I create a root window in thread using python. Then next is I need to destroy it and create a new window but an error was out saying that threads can only be started once. How can I start a new window ...
1
vote
0answers
29 views
Python and popup windows
I have searched for days and tried too many incorrect solutions. I have a python script that used to upload a csv file to a website. The website has added a popup box that must be addressed before the ...
1
vote
0answers
44 views
Unable to open a window with Pyglet
I decided to look into Pyglet to experiment with graphics and hit the ground face first with some errors. Right off the bat, I had issue simply trying to create a window. I would get multiple errors ...
0
votes
0answers
23 views
How to display calculation results in the title of the drawing window (Python)
Lets say I have randomly dropped a number a balls in the drawing window and some of them hit holes. How do I display the results in the drawing window?
Something=float(num_balls)/Online
screentitle ...
0
votes
0answers
151 views
Keylogger in python
import win32api , win32console , win32gui , pythoncom , pyHook , sys, time ,os
lastWindow = None
lastWindow=win32gui.GetWindowText (win32gui.GetForegroundWindow())
while True:
def ...
0
votes
0answers
73 views
How to make a background service copy files to net drive
Description
One python program is built to run as window service on a remote machine(RM). It's hosted by svrany. The client program will run on any other PC to call the service. When the service is ...
0
votes
0answers
40 views
Starting Python Programm on Windows Server without making an exe?
I'm writing a python-programm with PyQT and Python 2.7 and now looking for a way to get it run from a window server without making an exe.
The situation:
the programm will be started on a client ...
0
votes
0answers
67 views
root.resizable() Tkinter Query
I'm trying to make a program that can only be either maximised, or minimised (ie, no dragging the edge of the window)
Is this possible?
I searched and found the function
root.resizable(0, 0)
But ...
0
votes
0answers
218 views
Python, refresh dynamically created buttons with tkinter
I have been reading about refreshing tkinter windows but all the examples I have found have been for changing the color of a screen or updating a line of text. I have a problem where I need to update ...
0
votes
0answers
112 views
System menu in OS - Python
How to get the information, that user is clicking on the system menu of any window in OS (Windows in my case).
I've tried to rewrite this code to be able scan other windows in OS without result:
I ...