More stupid PyQt enums

This commit is contained in:
Kovid Goyal 2020-12-20 11:03:08 +05:30
parent 281da620c2
commit c857c89fbe
No known key found for this signature in database
GPG Key ID: 06BC317B515ACE7C

View File

@ -12,7 +12,7 @@ import time
from PyQt5.Qt import ( from PyQt5.Qt import (
QCheckBox, QComboBox, QDialog, QDialogButtonBox, QDoubleSpinBox, QFormLayout, QCheckBox, QComboBox, QDialog, QDialogButtonBox, QDoubleSpinBox, QFormLayout,
QFrame, QHBoxLayout, QIcon, QLabel, QLineEdit, QListWidget, QPlainTextEdit, QFrame, QHBoxLayout, QIcon, QLabel, QLineEdit, QListWidget, QPlainTextEdit, QLayout,
QPushButton, QScrollArea, QSize, QSizePolicy, QSpinBox, Qt, QTabWidget, QTimer, QPushButton, QScrollArea, QSize, QSizePolicy, QSpinBox, Qt, QTabWidget, QTimer,
QToolButton, QUrl, QVBoxLayout, QWidget, pyqtSignal QToolButton, QUrl, QVBoxLayout, QWidget, pyqtSignal
) )
@ -539,7 +539,7 @@ class Library(QWidget):
self.name = name self.name = name
self.enable_on_checked = enable_on_checked self.enable_on_checked = enable_on_checked
self.l = l = QVBoxLayout(self) self.l = l = QVBoxLayout(self)
l.setSizeConstraint(l.SetMinAndMaxSize) l.setSizeConstraint(QLayout.SizeConstraint.SetMinAndMaxSize)
if not is_first: if not is_first:
self.border = b = QFrame(self) self.border = b = QFrame(self)
b.setFrameStyle(QFrame.Shape.HLine) b.setFrameStyle(QFrame.Shape.HLine)