本文整理匯總了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)