def make_hline(): out = QtWidgets.QFrame() out.setFrameShape(QtWidgets.QFrame.HLine) out.setFrameShadow(QtWidgets.QFrame.Sunken) return out