Python PySide2.QtWidgets.QDesktopWidget() Examples
The following are 3
code examples of PySide2.QtWidgets.QDesktopWidget().
You can vote up the ones you like or vote down the ones you don't like,
and go to the original project or source file by following the links above each example.
You may also want to check out all available functions/classes of the module
PySide2.QtWidgets
, or try the search function
.
Example #1
Source File: capture.py From pyblish-bumpybox with GNU Lesser General Public License v3.0 | 5 votes |
def _get_screen_size(): """Return available screen size without space occupied by taskbar""" if _in_standalone(): return [0, 0] rect = QtWidgets.QDesktopWidget().screenGeometry(-1) return [rect.width(), rect.height()]
Example #2
Source File: capture.py From maya-capture with MIT License | 5 votes |
def _get_screen_size(): """Return available screen size without space occupied by taskbar""" if _in_standalone(): return [0, 0] rect = QtWidgets.QDesktopWidget().screenGeometry(-1) return [rect.width(), rect.height()]
Example #3
Source File: main.py From DeepCreamPy with GNU Affero General Public License v3.0 | 5 votes |
def center(self): qr = self.frameGeometry() cp = QDesktopWidget().availableGeometry().center() qr.moveCenter(cp) self.move(qr.topLeft())