4.21. foundations.ui.common
common.py
- Platform:
- Windows, Linux, Mac Os X.
- Description:
- Defines Foundations package ui common utilities objects.
Others:
4.21.1. Module Attributes
-
foundations.ui.common.LOGGER
-
foundations.ui.common.RESOURCES_DIRECTORY
-
foundations.ui.common.DEFAULT_UI_FILE
4.21.2. Functions
-
foundations.ui.common.centerWidgetOnScreen(widget, screen=None)[source]
Centers the given Widget on the screen.
Parameters: |
- widget (QWidget) – Current Widget.
- screen (int) – Screen used for centering.
|
Returns: | Definition success.
|
Return type: | bool
|
-
foundations.ui.common.QWidgetFactory(uiFile=None, *args, **kwargs)[source]
Defines a class factory creating QWidget classes
using given ui file.
Parameters: |
- uiFile (unicode) – Ui file.
- *args (*) – Arguments.
- **kwargs (**) – Keywords arguments.
|
Returns: | QWidget class.
|
Return type: | QWidget
|