本文整理汇总了Python中src.ui.main.Edis.get_lateral方法的典型用法代码示例。如果您正苦于以下问题:Python Edis.get_lateral方法的具体用法?Python Edis.get_lateral怎么用?Python Edis.get_lateral使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类src.ui.main.Edis
的用法示例。
在下文中一共展示了Edis.get_lateral方法的5个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Python代码示例。
示例1: load_project_widget
# 需要导入模块: from src.ui.main import Edis [as 别名]
# 或者: from src.ui.main.Edis import get_lateral [as 别名]
def load_project_widget(self, widget):
self._tree_project = Edis.get_lateral("tree_projects")
self.tabs.addTab(self._tree_project, self.tr("Proyectos"))
editor_container = Edis.get_component("principal")
self.connect(editor_container, SIGNAL("projectOpened(PyQt_PyObject)"),
self._open_project)
self.connect(editor_container, SIGNAL("folderOpened(PyQt_PyObject)"),
self._open_directory)
示例2: build_source_code
# 需要导入模块: from src.ui.main import Edis [as 别名]
# 或者: from src.ui.main.Edis import get_lateral [as 别名]
def build_source_code(self):
output = Edis.get_component("output")
project = Edis.get_lateral("tree_projects")
weditor = self.get_active_editor()
if weditor is not None:
filename = self.save_file()
if project.sources:
output.build((filename, project.sources))
else:
if filename:
output.build((weditor.filename, []))
示例3: load_symbols_widget
# 需要导入模块: from src.ui.main import Edis [as 别名]
# 或者: from src.ui.main.Edis import get_lateral [as 别名]
def load_symbols_widget(self, widget):
if self._symbols_widget is None:
self._symbols_widget = Edis.get_lateral("symbols")
self.tabs.addTab(self._symbols_widget, self.tr("Símbolos"))
# Conexiones
editor_container = Edis.get_component("principal")
self.connect(self._symbols_widget, SIGNAL("goToLine(int)"),
editor_container.go_to_line)
self.connect(editor_container, SIGNAL("updateSymbols(QString)"),
self._update_symbols_widget)
#lambda filename: self.thread.parse(filename))
self.connect(editor_container.editor_widget,
SIGNAL("allFilesClosed()"),
self._symbols_widget.clear)
示例4: load_explorer_widget
# 需要导入模块: from src.ui.main import Edis [as 别名]
# 或者: from src.ui.main.Edis import get_lateral [as 别名]
def load_explorer_widget(self, widget):
if self._explorer is None:
self._explorer = Edis.get_lateral("explorer")
self.tabs.addTab(self._explorer, self.tr("Explorador"))
示例5: get_open_projects
# 需要导入模块: from src.ui.main import Edis [as 别名]
# 或者: from src.ui.main.Edis import get_lateral [as 别名]
def get_open_projects(self):
tree_projects = Edis.get_lateral("tree_projects")
return tree_projects.get_open_projects()