当前位置: 首页>>代码示例>>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;未经允许,请勿转载。