コード例 #1
0
class PythonEditorPane(TaskPane):

    id = 'example.python_editor_pane'
    name = 'Python Editor'

    editor = Instance(PythonEditor)

    def create(self, parent):
        self.editor = PythonEditor(parent)
        self.control = self.editor.control

    def destroy(self):
        self.editor.destroy()
        self.control = self.editor = None
コード例 #2
0
ファイル: dock_task_example.py プロジェクト: simvisage/bmcs
class PythonEditorPane(TaskPane):

    id = Str
    name = Str

    editor = Instance(PythonEditor)

    def create(self, parent):
        self.editor = PythonEditor(parent)
        self.control = self.editor.control

    def destroy(self):
        self.editor.destroy()
        self.control = self.editor = None
コード例 #3
0
ファイル: panes.py プロジェクト: jomason/omnivore
class PythonEditorPane(TaskPane):
    """ A wrapper around the Pyface Python editor.
    """

    #### TaskPane interface ###################################################

    id = 'example.python_editor_pane'
    name = 'Python Editor'

    #### PythonEditorPane interface ###########################################

    editor = Instance(PythonEditor)

    ###########################################################################
    # 'ITaskPane' interface.
    ###########################################################################

    def create(self, parent):
        self.editor = PythonEditor(parent)
        self.control = self.editor.control

    def destroy(self):
        self.editor.destroy()
        self.control = self.editor = None
コード例 #4
0
class PythonEditorPane(TaskPane):
    """ A wrapper around the Pyface Python editor.
    """

    # TaskPane interface ---------------------------------------------------

    id = "example.python_editor_pane"
    name = "Python Editor"

    # PythonEditorPane interface -------------------------------------------

    editor = Instance(PythonEditor)

    # ------------------------------------------------------------------------
    # 'ITaskPane' interface.
    # ------------------------------------------------------------------------

    def create(self, parent):
        self.editor = PythonEditor(parent)
        self.control = self.editor.control

    def destroy(self):
        self.editor.destroy()
        self.control = self.editor = None