Source code for siriushla.widgets.horizontal_ruler

"""Horizontal Ruler Widget."""
from qtpy.QtWidgets import QFrame

[docs] class HorizontalRuler(QFrame): def __init__(self, parent=None): super().__init__(parent) self.setFrameShape(QFrame.HLine) self.setFrameShadow(QFrame.Sunken) self.setFixedHeight(30)
[docs] def setHeight(self, height): self.setFixedHeight(height)