MVC View Utils (rafcon.gui.views.utils)

AboutDialogView (in about_dialog)

class rafcon.gui.views.utils.about_dialog.AboutDialogView

Bases: gi.repository.Gtk.AboutDialog

EditorView (in editor)

class rafcon.gui.views.utils.editor.EditorView(name='SOURCE EDITOR', language='idl', editor_style='SOURCE_EDITOR_STYLE', run_with_spacer=False)

Bases: rafcon.design_patterns.mvc.view.View

apply_tag(name)
code_changed(source)
get_buffer()
get_cursor_position()
get_text()
new_buffer()
register()
scroll_to_cursor_onscreen()
set_cursor_position(line_number, line_offset)
set_enabled(on, text=None)

Set the default input or deactivated (disabled) style scheme

The method triggers the signal ‘changed’ by using set_text. Therefore, the method use the while_in_set_enabled flag to make activities of the method observable. If a method trigger this method and was triggered by a changed-signal this flag is supposed to avoid recursive calls.

Parameters
  • on (bool) – enable flag.

  • text (str) – optional text to insert.

Returns

set_text(text)

The method insert text into the text buffer of the text view and preserves the cursor location.

Parameters

text (str) – which is insert into the text buffer.

Returns

SingleWidgetWindowView (in single_widget_window)

class rafcon.gui.views.utils.single_widget_window.SingleWidgetWindowView(view_class, width=500, height=500, title=None, pos=None)

Bases: rafcon.design_patterns.mvc.view.View