msl.qt.utils module

General functions.

msl.qt.utils.drag_drop_paths(event, *, pattern=None)[source]

Returns the list of file paths from a drag-enter or drop event.

Parameters:
Returns:

list of str – The list of file paths.

msl.qt.utils.screen_geometry(widget=None)[source]

Get the geometry of a desktop screen.

Parameters:widget (QtWidgets.QWidget, optional) – Get the geometry of the screen that contains this widget.
Returns:QtCore.QRect – If a widget is specified then the geometry of the screen that contains the widget otherwise returns the geometry of the primary screen (i.e., the screen where the main widget resides).