MCPcopy Index your code
hub / github.com/MCSLTeam/MCSL2 / initNavigation

Method initNavigation

MCSL2Lib/windowInterface.py:277–297  ·  view source on GitHub ↗

初始化导航栏

(self)

Source from the content-addressed store, hash-verified

275 self.pluginManager.initSinglePluginsWidget(self.pluginsInterface.pluginsVerticalLayout)
276
277 def initNavigation(self):
278 """初始化导航栏"""
279 self.navigationInterface.setExpandWidth(170)
280 self.addSubInterface(self.homeInterface, FIF.HOME, self.tr("主页"))
281 self.addSubInterface(self.configureInterface, FIF.ADD_TO, self.tr("新建"))
282 self.addSubInterface(self.serverManagerInterface, FIF.LIBRARY, self.tr("管理"))
283 self.addSubInterface(self.downloadInterface, FIF.DOWNLOAD, self.tr("下载"))
284 self.addSubInterface(self.consoleCenterInterface, FIF.ROBOT, self.tr("监控"))
285 self.addSubInterface(self.pluginsInterface, FIF.APPLICATION, self.tr("插件"))
286 self.navigationInterface.addSeparator()
287 self.addSubInterface(
288 self.settingsInterface,
289 FIF.SETTING,
290 self.tr("设置"),
291 position=NavigationItemPosition.BOTTOM,
292 )
293
294 self.stackedWidget.addWidget(self.selectJavaPage)
295 self.stackedWidget.addWidget(self.selectNewJavaPage)
296
297 self.navigationInterface.setCurrentItem(self.homeInterface.objectName())
298
299 def initWindow(self):
300 """初始化窗口"""

Callers 1

__init__Method · 0.95

Calls 1

addWidgetMethod · 0.45

Tested by

no test coverage detected