本文整理匯總了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()