本文整理汇总了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
示例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
示例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)
示例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
示例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
示例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)
# -------------------------------------------------