horus-gui/horusgui/widgets.py

10 wiersze
289 B
Python

2020-06-22 11:36:55 +00:00
# Useful widgets
2024-03-31 03:40:13 +00:00
from PyQt5 import QtWidgets
2020-06-22 11:36:55 +00:00
# Useful class for adding horizontal lines.
2024-03-31 00:05:46 +00:00
class QHLine(QtWidgets.QFrame):
2020-06-22 11:36:55 +00:00
def __init__(self):
super(QHLine, self).__init__()
2024-03-31 00:05:46 +00:00
self.setFrameShape(QtWidgets.QFrame.HLine)
self.setFrameShadow(QtWidgets.QFrame.Sunken)