Well i am creating a utility for my own needs, that being to help improve my reading on the computer. What i need to do is create a tool which can add a colour filter to a section of the screen, as well as add zoom. The first thing was easy to do, i set the attributes to add alpha, topmost and gave a frame a set bg colour.
What i dont know how to do is the zoom. I was thinking of getting a screen capture cut the selected bit apply image transformation then render it in the window. Of course the utility window will also be drawn and obscure the screen capture. I dont know tkinter well enough and i really want to avoid doing GDI work, but if someone has a solution with it i dont mind using it. Clearly referencing GDI, im making it to run on windows.
Optional: Something i have a work around for but would be nice to have is the ability to click through a window, but i doubt i can do that with tkinter.
EDIT: Since im getting negative votes, and i don't know why please help me improve with a comment.
I'm not looking for someone to do the work for me i just want a hint on what might be the right way to do this. With the main problem being how to get a image for whats underneath the Tkinter window so i can process it.
Related
Does anyone know why kivy sometimes does not show new widgets on the screen. I have the identical code for several screens in an app writtin in .kv-language. It works fine in all screen but one screen wont show my the widgets and images.
I had the same problem a view times now, sometimes it works after a while but it is starting to get annoying since I can not continue coding before my widgets decide to show up.
it often helps to just change the name of the screen and all its mentions. I still do not get what is going on, so if somebody has an answer please tell me.
I am very new to this so please do not judge if my question seems too obvious.
so I am trying to make a game in the python turtle module and I would like to have different buttons for loading and quitting. I have images of these buttons and I am making these images my turtle object by using .addshape() and .shape() methods. The next step for me is to make sure that when I click any of these buttons I get the desired outcome. My issue is that I cannot figure out how to make that happen i.e how can I make my program do the thing when the mouse clicks within a certain image? I have tried using turtle.onclick() method, but I guess I am not able to utilize that either. Any help would be much appreciated.
I want to make a small launcher image that is not resizable, movable and doesn't appear like another open window, for one of my python programs, but after a lot of searches, I still can't find how to do one.
Does someone know how to do this?
I want it a bit like this:
I've been looking for a way to screenshot a window that is not on top. It's not minimized, just covered by another one which is active.
For instance, let's say I want to screenshot an online chat (window 1, not active, running in the background, not minimized) while watching a youtube video (window 2, active, showing on screen).
I'm pretty sure there are ways to do this, most of flash application keep rendering even when covered by another window.
Currently, I havn't found anything reliable.
I have been looking at C++ solutions and python ones (but I'd rather have a python one). A VBA one would be great too since I often work with macros.
I also though of creating a virtual dual screen, and assigning the window I want to screenshot to it, to have it rendering the window. But I don't know how and if it could work.
If you have any ideas, let me know :)
Thank you
Pressing command-H in OSX immediately hides the active window. How do I achieve the same effect, programmatically, from Python? Specifically, I'd like to find a particular window that my application creates and then be able to show & hide it programmatically.
I already know how to do this with pywin32 but I'm afraid my expertise there doesn't quite cover OSX as well.
If it helps, the window in question is one created by pygame. I know that pygame has pygame.display.iconify() but that doesn't satisfy my requirements - the window doesn't disappear immediately, but rather the disappearance is animated, and there's no corresponding "uniconify" function that I can find.
Well, this ended up working. When I want to hide the window, I do pygame.display.quit() and make my code properly handle not having a display. When I want to show it, I do pygame.display.set_mode(...) with the former resolution.
The net effect is that of hiding & showing the window. Unfortunately the window gets created in a different spot than where it started, and although apparently you can tell SDL to create the window in a particular spot, I haven't been able to find a way to get the window's location...