Пример #1
0
 def __init__(self):
     super().__init__()
     ddic.provide_on_demand(provider=self.view_added)
     self.actions = []
Пример #2
0
from pyde.ddi import ddic
from wspace.desktop_gen import reload_buffers, get_layout

ddic.provide_on_demand('reload_buffers', reload_buffers, '')
# ddic.provide('main_win_layout', get_layout())
Пример #3
0
from pyde.actions import provide_action_args
from pyde.plugins.statusbar import Statusbar, StatusbarMode, DefStatusProvider
from pyde.plugins.dump_config import DumpConfig
from pyde.pyde_frame import PydeFrame, ChildLayout
from pyde.layout import Layout
from pyde.view import View
from PyQt4 import QtCore
import os
import time
from pyde.plugins.filebuf import Filebuf
from pyde.plugins.ca_vhdl import VhdlContentAssist
from pyde.editors.web import WebWidget

# ddic.create_scope('view')
# ddic.provide('cls/layout', PydeFrame)
ddic.provide_on_demand("cls/win_layout", Layout, "win_layout")
ddic.provide_on_demand("cls/dump_config", DumpConfig, "dump_config")
ddic.provide_on_demand("cls/win", MainWindow, "widget/")
ddic.provide_on_demand("cls/editor_generic", PydeEditor, "widget/")
ddic.provide_on_demand("cls/ipython", PyInerpretEditor, "widget/")
ddic.provide_on_demand("cls/web", WebWidget, "widget/")
ddic.provide_on_demand("cls/statusbar", Statusbar, "widget/")
ddic.provide("cls/view", View)

ddic.provide_on_demand("cls/lexer", Lexer, "lexer/inst/")
ddic.provide_on_demand("cls/templ_actuator", TemplActuator, "templ_actuator/inst/")
ddic.provide_on_demand("cls/key_dispatcher", KeyDispatcher, "key_dispatcher")

ddic.provide_on_demand("mode/cls/python", ViewModeExtensionFactory("python", [".py"]), "mode/inst/")
ddic.provide_on_demand("mode/cls/ipython", IPythonMode, "mode/inst/")
ddic.provide_on_demand("mode/cls/statusbar", StatusbarMode, "mode/inst/")