本文整理汇总了Python中PyQt5.QtWidgets.QStackedLayout方法的典型用法代码示例。如果您正苦于以下问题:Python QtWidgets.QStackedLayout方法的具体用法?Python QtWidgets.QStackedLayout怎么用?Python QtWidgets.QStackedLayout使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类PyQt5.QtWidgets
的用法示例。
在下文中一共展示了QtWidgets.QStackedLayout方法的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Python代码示例。
示例1: __init__
# 需要导入模块: from PyQt5 import QtWidgets [as 别名]
# 或者: from PyQt5.QtWidgets import QStackedLayout [as 别名]
def __init__(self, *args, **kwargs):
QWidget.__init__(self, *args, **kwargs)
self.current_entry = 0
self.max_entries = 2
self.text_entry = TextFilterEntry()
dropdown_entry = DropdownFilterEntry()
self.text_entry.filterEntered.connect(self.filterEntered)
dropdown_entry.filterEntered.connect(self.filterEntered)
self.entry_layout = QStackedLayout()
self.entry_layout.addWidget(dropdown_entry)
self.entry_layout.addWidget(self.text_entry)
swap_button = QToolButton()
swap_button.setText(">")
swap_button.setToolTip("Switch between dropdown and text entry")
swap_button.clicked.connect(self.next_entry)
hlayout = QHBoxLayout()
hlayout.addWidget(swap_button)
hlayout.addLayout(self.entry_layout)
self.setLayout(hlayout)
self.layout().setContentsMargins(0, 0, 0, 0)
self.layout().setSpacing(0)
示例2: __init__
# 需要导入模块: from PyQt5 import QtWidgets [as 别名]
# 或者: from PyQt5.QtWidgets import QStackedLayout [as 别名]
def __init__(self, emuchunks=None):
self.qtAvailable = qtAvailable
if not qtAvailable:
return
super(riprWidget, self).__init__('ripr')
self.emuchunks = emuchunks
self._table = riprTable(emuchunks=emuchunks)
self.setLayout(QtWidgets.QStackedLayout())
self.layout().addWidget(self._table)
self.setObjectName('BNPlugin_ripr')
示例3: __init__
# 需要导入模块: from PyQt5 import QtWidgets [as 别名]
# 或者: from PyQt5.QtWidgets import QStackedLayout [as 别名]
def __init__(self, parent=None):
super().__init__(parent)
self.model = None
self.table_model = SkillPointDataModel(self)
self.table_view = SortFilterTableView(self)
self.table_view.setModel(self.table_model)
self.setLayout(QStackedLayout(self))
self.layout().addWidget(self.table_view)
示例4: __init__
# 需要导入模块: from PyQt5 import QtWidgets [as 别名]
# 或者: from PyQt5.QtWidgets import QStackedLayout [as 别名]
def __init__(self, parent=None):
super().__init__(parent)
self.model = None
self.table_model = OtomoArmorTableModel(self)
self.table_view = SortFilterTableView(self)
self.table_view.setModel(self.table_model)
self.setLayout(QStackedLayout(self))
self.layout().addWidget(self.table_view)
示例5: __init__
# 需要导入模块: from PyQt5 import QtWidgets [as 别名]
# 或者: from PyQt5.QtWidgets import QStackedLayout [as 别名]
def __init__(self, parent=None):
super().__init__(parent)
self.model = None
self.table_model = TableModel(self)
self.table_view = SortFilterTableView(self)
self.table_view.setModel(self.table_model)
self.setLayout(QStackedLayout(self))
self.layout().addWidget(self.table_view)
示例6: __init__
# 需要导入模块: from PyQt5 import QtWidgets [as 别名]
# 或者: from PyQt5.QtWidgets import QStackedLayout [as 别名]
def __init__(self, parent=None):
super().__init__(parent)
self.model = None
self.table_model = SkillDataModel(self)
self.table_view = SortFilterTableView(self)
self.table_view.setModel(self.table_model)
self.setLayout(QStackedLayout(self))
self.layout().addWidget(self.table_view)
示例7: __init__
# 需要导入模块: from PyQt5 import QtWidgets [as 别名]
# 或者: from PyQt5.QtWidgets import QStackedLayout [as 别名]
def __init__(self, parent=None):
super().__init__(parent)
self.model = None
self.table_model = StructTableModel(columns, self)
self.table_view = SortFilterTableView(self)
self.table_view.setModel(self.table_model)
self.setLayout(QStackedLayout(self))
self.layout().addWidget(self.table_view)
示例8: __init__
# 需要导入模块: from PyQt5 import QtWidgets [as 别名]
# 或者: from PyQt5.QtWidgets import QStackedLayout [as 别名]
def __init__(self, parent=None):
super().__init__(parent)
self.model = None
self.table_model = LbmSkillTableModel(self)
self.table_view = SortFilterTableView(self)
self.table_view.setModel(self.table_model)
self.setLayout(QStackedLayout(self))
self.layout().addWidget(self.table_view)
示例9: __init__
# 需要导入模块: from PyQt5 import QtWidgets [as 别名]
# 或者: from PyQt5.QtWidgets import QStackedLayout [as 别名]
def __init__(self, parent=None):
super().__init__(parent)
self.model = None
self.table_model = StructTableModel(WepSaxeEntry.fields(), self)
self.table_view = SortFilterTableView(self)
self.table_view.setModel(self.table_model)
self.setLayout(QStackedLayout(self))
self.layout().addWidget(self.table_view)
示例10: __init__
# 需要导入模块: from PyQt5 import QtWidgets [as 别名]
# 或者: from PyQt5.QtWidgets import QStackedLayout [as 别名]
def __init__(self, parent=None):
super().__init__(parent)
self.model = None
self.table_model = StructTableModel(KireEntry.fields(), self)
self.table_view = SortFilterTableView(self)
self.table_view.setModel(self.table_model)
self.setLayout(QStackedLayout(self))
self.layout().addWidget(self.table_view)
示例11: __init__
# 需要导入模块: from PyQt5 import QtWidgets [as 别名]
# 或者: from PyQt5.QtWidgets import QStackedLayout [as 别名]
def __init__(self, parent=None):
super().__init__(parent)
self.model = None
self.table_model = SedTableModel(self)
self.table_view = SortFilterTableView(self)
self.table_view.setModel(self.table_model)
self.setLayout(QStackedLayout(self))
self.layout().addWidget(self.table_view)
示例12: __init__
# 需要导入模块: from PyQt5 import QtWidgets [as 别名]
# 或者: from PyQt5.QtWidgets import QStackedLayout [as 别名]
def __init__(self, parent=None):
super().__init__(parent)
self.model = None
self.table_model = StructTableModel(WepGlanEntry.fields(), self)
self.table_view = SortFilterTableView(self)
self.table_view.setModel(self.table_model)
self.setLayout(QStackedLayout(self))
self.layout().addWidget(self.table_view)
示例13: __init__
# 需要导入模块: from PyQt5 import QtWidgets [as 别名]
# 或者: from PyQt5.QtWidgets import QStackedLayout [as 别名]
def __init__(self, parent=None):
super().__init__(parent)
self.model = None
self.table_model = StructTableModel(WepWslEntry.fields(), self)
self.table_view = SortFilterTableView(self)
self.table_view.setModel(self.table_model)
self.setLayout(QStackedLayout(self))
self.layout().addWidget(self.table_view)
示例14: __init__
# 需要导入模块: from PyQt5 import QtWidgets [as 别名]
# 或者: from PyQt5.QtWidgets import QStackedLayout [as 别名]
def __init__(self, parent=None):
super().__init__(parent)
self.model = None
self.table_model = LbmBaseTableModel(self)
self.table_view = SortFilterTableView(self)
self.table_view.setModel(self.table_model)
self.setLayout(QStackedLayout(self))
self.layout().addWidget(self.table_view)
示例15: __init__
# 需要导入模块: from PyQt5 import QtWidgets [as 别名]
# 或者: from PyQt5.QtWidgets import QStackedLayout [as 别名]
def __init__(self, parent=None):
super().__init__(parent)
self.model = None
self.table_model = SgpaTableModel(self)
self.table_view = SortFilterTableView(self)
self.table_view.setModel(self.table_model)
self.setLayout(QStackedLayout(self))
self.layout().addWidget(self.table_view)