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:
colorstr, optional

The color of the divider in hex color code. The default is "#000000".

heightfloat, optional

Divider height. The default is 0.

widthfloat, optional

Divider width. The default is 20.

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()