Posts by teckscam • 1 point
3 posts
-
0
votes2
answers437
viewsA: Is there a way to center the screen created in python ( pyqt ) for any resolution?
I use this small function in Mainwindow. class MainWindow(QMainWindow): ... def center(self): qr = self.frameGeometry() cp = Lqt.QDesktopWidget().availableGeometry().center() qr.moveCenter(cp)…
-
-3
votes2
answers335
viewsA: How to open a second window in Pyqt5 without closing the main?
I’m gonna do a little update on my code. Having us in Notes.ui a combobox we will get some option of this combobox and then "take" this option up to a textbrowser in Mainwindow.ui datacbox = ([" ",…
-
-3
votes2
answers335
viewsA: How to open a second window in Pyqt5 without closing the main?
Hello, here is a complete script that I use in my programs. Surely you should adapt it to your case. It has an extra function called center that serves to center the main window on the screen. I…