horus-gui/horusgui/widgets.py

10 wiersze
289 B
Python

# Useful widgets
from PyQt5 import QtWidgets
# Useful class for adding horizontal lines.
class QHLine(QtWidgets.QFrame):
def __init__(self):
super(QHLine, self).__init__()
self.setFrameShape(QtWidgets.QFrame.HLine)
self.setFrameShadow(QtWidgets.QFrame.Sunken)