PyCredits#
- class ansys.aedt.toolkits.common.ui.utils.widgets.py_credits.py_credits.PyCredits(text='© 2024 MyApp Co.', version='0.0.1', bg='#FFFFFF', font_family='Segoe UI', text_size=9, text_description_color='#00000', radius=8, padding=10)[source]#
Credits information widget with customizable elements.
Inherits QWidget and includes UILabels for credits and version information, with customizable styles.
- Parameters:
- text
str
,optional
Copyright text to be displayed. The default is
"© 2024 MyApp Co."
.- version
str
,optional
Version information text to be displayed. The default is
"0.0.1"
.- bg
str
,optional
Background color for the widget. The default is
"FFFFFF"
.- font_family
str
,optional
Font family name for the text. The default is
"Segoe UI"
.- text_size
int
,optional
Size of the text. The default is
9
.- text_description_color
str
,optional
Color of the text. The default is
"#FFFFFF"
.- radius
int
,optional
Radius of the widget’s corners. The default is
9
.- padding
int
,optional
Padding applied to the text in the labels. The default is
10
.
- text
Examples
>>> import sys >>> from PySide6.QtWidgets import * >>> from ansys.aedt.toolkits.common.ui.utils.widgets import *
>>> class MyApp(QMainWindow): ... def __init__(self): ... super().__init__() ... self.credits = PyCredits() ... self.credits.show()
>>> if __name__ == "__main__": ... app = QApplication([]) ... window = MyApp() ... sys.exit(app.exec())