window

Creating a transparent overlay with qt

Creating a transparent overlay with qt Question: I’ve been learning python recently and now I wanted to (try to) create my first real application, a subtitle player for Linux. So far I’ve been using the Greenfish subtitle player, which is aimed at Windows users and not properly working in Linux. I wanted to create the …

Total answers: 2

How to move or resize X11 windows (even if they are maximized)?

How to move or resize X11 windows (even if they are maximized)? Question: I want to change position of a window. My problem is that the window can be maximized, this does not allow to change its size and location (window can belong to any application). I use KDE4. I tried to use ewmh Python …

Total answers: 1

How to make a window with buttons in python

How to make a window with buttons in python Question: How do I create a function that makes a window with two buttons, where each button has a specified string and, if clicked on, returns a specified variable? Similar to @ 3:05 in this video https://www.khanacademy.org/science/computer-science-subject/computer-science/v/writing-a-simple-factorial-program—python-2 (I know it’s a tutorial for a very easy …

Total answers: 7

Python: Tkinter: How to change the windows border color?

Python: Tkinter: How to change the windows border color? Question: Every result I’ve gotten from searching this question up has to do with changing the border color for Tkinter widget’s WITHIN the main app window, or changing the background color and stuff. What I’m looking to do is actually change the windows border color itself. …

Total answers: 2

Find start and end positions of all occurrences within a string in Python

Find start and end positions of all occurrences within a string in Python Question: If you have a sequence: example=’abcdefabcdefabcdefg’ and your searching for: searching_for=’abc’ what function would give you a list with all the positions? positions=[(0,2),(6-8),(12-14)] i created a window list that splits ‘example’ by 3 so it goes from ‘abc’,’bcd’,’cde’ windows=[‘abc’, ‘bcd’, ‘cde’, …

Total answers: 3

Rolling window for 1D arrays in Numpy?

Rolling window for 1D arrays in Numpy? Question: Is there a way to efficiently implement a rolling window for 1D arrays in Numpy? For example, I have this pure Python code snippet to calculate the rolling standard deviations for a 1D list, where observations is the 1D list of values, and n is the window …

Total answers: 7

How do I take out the focus or minimize a window with Python?

How do I take out the focus or minimize a window with Python? Question: I need to get focus to a specified window, and the only way I’m seeing on my head, is minimizing all windows on front of it until I get the right one… How can I do it? Windows 7, and no …

Total answers: 3