PyDiv#
- class ansys.aedt.toolkits.common.ui.utils.widgets.py_div.py_div.PyDiv(color='#000000', height=0, width=20)[source]#
Vertical divider widget with customizable elements.
- Parameters:
Examples
>>> import sys >>> from PySide6.QtWidgets import QApplication, QVBoxLayout, QPushButton >>> from ansys.aedt.toolkits.common.ui.utils.widgets import *
>>> class Example(QWidget): >>> def __init__(self): >>> super().__init__() >>> layout = QVBoxLayout(self) >>> layout.addWidget(QPushButton("Button 1")) >>> layout.addWidget(PyDiv("#FF0000", 20)) >>> layout.addWidget(QPushButton("Button 2"))
>>> if __name__ == "__main__": >>> app = QApplication([]) >>> window = Example() >>> window.show() >>> app.exec()