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


Python swing.JTabbedPane方法代碼示例

本文整理匯總了Python中javax.swing.JTabbedPane方法的典型用法代碼示例。如果您正苦於以下問題:Python swing.JTabbedPane方法的具體用法?Python swing.JTabbedPane怎麽用?Python swing.JTabbedPane使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在javax.swing的用法示例。


在下文中一共展示了swing.JTabbedPane方法的6個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的Python代碼示例。

示例1: createLibraryTabs

# 需要導入模塊: from javax import swing [as 別名]
# 或者: from javax.swing import JTabbedPane [as 別名]
def createLibraryTabs(self):
        self._libraryTabs = JTabbedPane()
        self.LearningViewer = JTabbedPane()
        self.DifferentialViewer = JTabbedPane()
        self._libraryTabs.addTab("Learning", self.LearningViewer)
        self._libraryTabs.addTab(
            "Differential Learning",
            self.DifferentialViewer)
        TreesViewer = LibraryTable(
            self, model=LibraryTableModel(
                self._db, "Tree"))
        ScrollTreesViewer = JScrollPane(TreesViewer)
        TreesViewer.redrawTable()
        self._libraryTabs.addTab("Tree", ScrollTreesViewer)
        self._callbacks.customizeUiComponent(self._libraryTabs)
        return self.LearningViewer, self.DifferentialViewer, TreesViewer 
開發者ID:lightbulb-framework,項目名稱:lightbulb-framework,代碼行數:18,代碼來源:BurpExtension.py

示例2: createSettingsTabs

# 需要導入模塊: from javax import swing [as 別名]
# 或者: from javax.swing import JTabbedPane [as 別名]
def createSettingsTabs(self):
        settignsTabs = JTabbedPane()
        self.ServerViewer = SettingsTable(
            self, model=SettingsTableModel(
                self._db, "Browser"))
        ScrollServerViewer = JScrollPane(self.ServerViewer)
        self.ServerViewer.redrawTable()
        self.MysqlViewer = SettingsTable(
            self, model=SettingsTableModel(
                self._db, "MySQL"))
        ScrollMysqlViewer = JScrollPane(self.MysqlViewer)
        self.MysqlViewer.redrawTable()
        self.LearningViewer = SettingsTable(
            self, model=SettingsTableModel(
                self._db, "Learning"))
        ScrollLearningViewer = JScrollPane(self.LearningViewer)
        self.LearningViewer.redrawTable()
        settignsTabs.addTab("Web Browser", ScrollServerViewer)
        settignsTabs.addTab("MySQL Client", ScrollMysqlViewer)
        settignsTabs.addTab("Learning", ScrollLearningViewer)
        self._callbacks.customizeUiComponent(settignsTabs)
        # TODO: consider adding the results when clicking the tab (lazy
        # instantiation) since it can get slow

        return settignsTabs 
開發者ID:lightbulb-framework,項目名稱:lightbulb-framework,代碼行數:27,代碼來源:BurpExtension.py

示例3: __init__

# 需要導入模塊: from javax import swing [as 別名]
# 或者: from javax.swing import JTabbedPane [as 別名]
def __init__(self, payload=None, texteditor_factory=None, editable=True):
        self._idx = 0

        self._texteditor_factory = texteditor_factory
        self._textareas = {}
        self._widgets = {}

        self._listener = None

        self.this = JTabbedPane()
        self.this.setUI(SneakTabbedPaneUI(self.this))

        if payload:
            self.refresh(payload)
        self.editable = editable
        self.set_editable(editable) 
開發者ID:doyensec,項目名稱:inql,代碼行數:18,代碼來源:payloadview.py

示例4: createLibrarySubTabs

# 需要導入模塊: from javax import swing [as 別名]
# 或者: from javax.swing import JTabbedPane [as 別名]
def createLibrarySubTabs(self, jtabbedpane, subcategory):
        SeedsViewer = JTabbedPane()
        TestsViewer = JTabbedPane()
        # if subcategory == 1:
        jtabbedpane.addTab("Seeds", SeedsViewer)
        # if subcategory == 2:
        jtabbedpane.addTab("Tests", TestsViewer)
        self._callbacks.customizeUiComponent(jtabbedpane)
        return SeedsViewer, TestsViewer 
開發者ID:lightbulb-framework,項目名稱:lightbulb-framework,代碼行數:11,代碼來源:BurpExtension.py

示例5: createRequestTabs

# 需要導入模塊: from javax import swing [as 別名]
# 或者: from javax.swing import JTabbedPane [as 別名]
def createRequestTabs(self, requestResponse):
        requestTabs = JTabbedPane()
        requestViewer = self._extender._callbacks.createMessageEditor(
            self._extender, False)
        responseViewer = self._extender._callbacks.createMessageEditor(
            self._extender, False)
        requestTabs.addTab("Request", requestViewer.getComponent())
        requestTabs.addTab("Response", responseViewer.getComponent())
        self._extender._callbacks.customizeUiComponent(requestTabs)
        requestViewer.setMessage(requestResponse.getRequest(), True)
        if requestResponse.getResponse():
            responseViewer.setMessage(requestResponse.getResponse(), False)
            requestTabs.setSelectedIndex(1)

        return requestTabs 
開發者ID:lightbulb-framework,項目名稱:lightbulb-framework,代碼行數:17,代碼來源:models.py

示例6: _initTab

# 需要導入模塊: from javax import swing [as 別名]
# 或者: from javax.swing import JTabbedPane [as 別名]
def _initTab(self, callbacks):
        '''
        Initial Burp Tab View
        '''
        self._toolkitTab = swing.JTabbedPane()
        self._toolkitTab.addTab('Tomcat Fs Login', self._tomcatMainPanel)
        callbacks.customizeUiComponent(self._toolkitTab)
        callbacks.addSuiteTab(self)
    
# ------------------------------------------------- 
開發者ID:WallbreakerTeam,項目名稱:TomcatBrute,代碼行數:12,代碼來源:TomcatBrute.py


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