I need some orientation - python

using tkinter, can somebody please give me some advice about to center all the actions in my actual window?
in other words, I have a window that have to be closed before the system recognize the mouse click in any other part of the display out of the window. Let's see I have three windows in cascade, Window1, Window2 and window3,
in window1 you have a button that opens a smaller window2, and in this window2 you have a similar button to open an even smaller window3; window3 has the same button to close than the others two windows.
if I click this button the windows will destroy itself, obviously but, if I click the mouse out of the window3, the "window3" goes behind window2, and what I want is to destroy window3 or to force every action with the mouse inside window3
I'm not a professional in python/tkinter only someone who is working in a project,

Related

How to activate mouse on the window?

I have seperate two pyqt5 window. One of them open in screen 1 and another open in second 2 display in my computer.
When I open the both of them, I want to keep mouse click in window2 and it has LineEdit. I need to focus every time in window2. I am using setFocus function but it didnt work. When the use click in window1 I lost the focus on window2 how can I move mouse cursor every time in related QlineEdit ?

Is there a way to select pyqt window/ui on mouse hover?

I have a little problem, I am using PyQt to make UI in Maya. Problem is that my current UI has hotkeys, but unless you click on the window, you can't use it because the window of UI is not selected(running on the back when you are doing things in Maya). UI being active all the time is also inconvenient because some hotkeys are the same as Maya's. So I was wondering is there any way to select a window without clicking on it, just mouse hover. Thank you!

Closing an .ui file on a click of a button (pyqt5)

I need my dialog box to close when the ok button is clicked. How do I do that ?
Assuming you created the button you should be able to just set the button click event as follows:
button.clicked.connect(self.close) where button is the button name.
Although since you did not provide any code with your question it's hard to know if this is what you're asking for...

Create a click through window for Linux

I want to make a click through window. A window which I click but the click pass to the window below it.
I've found this two solutions for windows:
How to make click-through windows PyQt
I have a form that can "click through", i.e. direct clicks to the window below. How can I undo my changes after the event?
But I want it to work in linux. I study the xlib mechanisms but cannot understand how the window stack works. Actually I can get all the windows with XQueryTree() and found the ones under my window. But I don't know witch one are above.

PyGObject and glade send window to the front

im having some problems to send to the front a GTK window.
I have a main window (window_root) with a button that launches another window (window_programs).
with this commands:
window_root.hide()
window_programs.show()
then, in window_programs, i have a button that displays another window (window_list) with the command:
window_list.show()
window_list is modal.
The problem was that window_list appeared at the back of window_programs.
so i did some research and i found window_list.show().
The problems is that window_list appears at the front, but when i click it window_programs comes to the front!
it makes some time that i'm looking for the solution, any help will be appreciated!
You are looking for the transient-for property of the modal window (which should be available in Glade). If the modal window needs to be transient to either of the two other windows, then you need to use gtk_window_set_transient_for() as needed since the modal can only be transient for one window at a time.

Categories

Resources