當前位置: 首頁>>代碼示例>>Python>>正文


Python QtWidgets.QStackedLayout方法代碼示例

本文整理匯總了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) 
開發者ID:roglew,項目名稱:guppy-proxy,代碼行數:27,代碼來源:reqlist.py

示例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') 
開發者ID:pbiernat,項目名稱:ripr,代碼行數:13,代碼來源:gui.py

示例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) 
開發者ID:fre-sch,項目名稱:mhw_armor_edit,代碼行數:10,代碼來源:skill_point_data_editor.py

示例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) 
開發者ID:fre-sch,項目名稱:mhw_armor_edit,代碼行數:10,代碼來源:otomo_armor_editor.py

示例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) 
開發者ID:fre-sch,項目名稱:mhw_armor_edit,代碼行數:10,代碼來源:mkex_editor.py

示例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) 
開發者ID:fre-sch,項目名稱:mhw_armor_edit,代碼行數:10,代碼來源:skill_data_editor.py

示例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) 
開發者ID:fre-sch,項目名稱:mhw_armor_edit,代碼行數:10,代碼來源:bbtbl_editor.py

示例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) 
開發者ID:fre-sch,項目名稱:mhw_armor_edit,代碼行數:10,代碼來源:lbm_skill_editor.py

示例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) 
開發者ID:fre-sch,項目名稱:mhw_armor_edit,代碼行數:10,代碼來源:wep_saxe_editor.py

示例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) 
開發者ID:fre-sch,項目名稱:mhw_armor_edit,代碼行數:10,代碼來源:kire_editor.py

示例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) 
開發者ID:fre-sch,項目名稱:mhw_armor_edit,代碼行數:10,代碼來源:sed_editor.py

示例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) 
開發者ID:fre-sch,項目名稱:mhw_armor_edit,代碼行數:10,代碼來源:wep_glan_editor.py

示例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) 
開發者ID:fre-sch,項目名稱:mhw_armor_edit,代碼行數:10,代碼來源:wep_wsl_editor.py

示例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) 
開發者ID:fre-sch,項目名稱:mhw_armor_edit,代碼行數:10,代碼來源:lbm_base_editor.py

示例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) 
開發者ID:fre-sch,項目名稱:mhw_armor_edit,代碼行數:10,代碼來源:sgpa_editor.py


注:本文中的PyQt5.QtWidgets.QStackedLayout方法示例由純淨天空整理自Github/MSDocs等開源代碼及文檔管理平台,相關代碼片段篩選自各路編程大神貢獻的開源項目,源碼版權歸原作者所有,傳播和使用請參考對應項目的License;未經允許,請勿轉載。