I used the following code to create an OpenCV window with a back button:
cv2.namedWindow("Edit")
cv2.createButton('Back',self.back,None,cv2.QT_PUSH_BUTTON,1)
However, when this window is opened, the button does not appear until I click command+P on my Mac. Is there a way I can program the menubar to appear without requiring the user to click command+P every time?
Related
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,
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 ?
I have a PyQt5 combobox script written in python 3.9
One thing I like to do is, on clicking a button:
the input box will be cleared of inputted text
the input box is clicked on, so that i can start typing straight away in the input box
I am able to clear the box using self.comboBox.setCurrentText('').
However, unable to have the inputbox clicked on. As such, I have to manually click on the inputbox to start typing.
Have tried using self.comboBox.setFocus but has no effect.
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.
I am trying to write a simple aplication (a continuously changing label on a window on the upper left side of the screen) and I don't want it to be seen on panel but only on system tray.Because it will run for a long time. How can I do that? Thanks.
PS: I am using python and pyqt on Linux. I tried SplashScreen but when I clicked on the window it disapears. I have a contexmenu on the window, so I must click on it.!
http://www.qtcentre.org/attachment.php?attachmentid=4686&d=1274802065
I found the solution. I set the window flag as "Qt.Popup". Now there in no window on the panel.