Moved code preview; fixrf plugin code context
This commit is contained in:
@@ -7,7 +7,6 @@ from gi.repository import Gtk
|
|||||||
|
|
||||||
# Application imports
|
# Application imports
|
||||||
from ..widgets.separator_widget import Separator
|
from ..widgets.separator_widget import Separator
|
||||||
from .code.code_container import CodeContainer
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
@@ -39,6 +38,4 @@ class FooterContainer(Gtk.Box):
|
|||||||
def _load_widgets(self):
|
def _load_widgets(self):
|
||||||
widget_registery.expose_object("footer-container", self)
|
widget_registery.expose_object("footer-container", self)
|
||||||
|
|
||||||
self.add( CodeContainer() )
|
|
||||||
|
|
||||||
self.add( Separator("separator-footer", 0) )
|
self.add( Separator("separator-footer", 0) )
|
||||||
|
|||||||
@@ -7,6 +7,7 @@ from gi.repository import Gtk
|
|||||||
|
|
||||||
# Application imports
|
# Application imports
|
||||||
from ..widgets.separator_widget import Separator
|
from ..widgets.separator_widget import Separator
|
||||||
|
from .code.code_container import CodeContainer
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
@@ -39,3 +40,4 @@ class LeftContainer(Gtk.Box):
|
|||||||
widget_registery.expose_object("left-container", self)
|
widget_registery.expose_object("left-container", self)
|
||||||
|
|
||||||
self.add( Separator("separator-left", 1) )
|
self.add( Separator("separator-left", 1) )
|
||||||
|
self.add( CodeContainer() )
|
||||||
|
|||||||
@@ -31,6 +31,9 @@ class PluginCode(PluginBase):
|
|||||||
def run(self):
|
def run(self):
|
||||||
raise PluginCodeException("Plugin Code 'run' must be overriden by Plugin")
|
raise PluginCodeException("Plugin Code 'run' must be overriden by Plugin")
|
||||||
|
|
||||||
|
def requests_ui_element(self, element_id: str):
|
||||||
|
return self.plugin_context.requests_ui_element(element_id)
|
||||||
|
|
||||||
def message(self, event: BaseEvent):
|
def message(self, event: BaseEvent):
|
||||||
return self.plugin_context.message(event)
|
return self.plugin_context.message(event)
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user