Module gwy :: Class SciText
[show private | hide private]
[frames | no frames]

Class SciText


SciText The ::edited signal is emitted when the text in its entry changes to a valid markup. If you need to react to all changes in entry contents, you can use SciText.get_entry() to get the entry and connect to its signal.

('gwyscitext', ' The #GwySciText which received the signal. ')
Method Summary
  __init__()
Creates a new scientific text entry.
  get_entry()
Gets the entry widget of a scientific text entry.
  get_has_preview()
Tests the display of a preview in a scientific text entry.
  get_text()
Gets the text in a scientific text entry.
  set_has_preview(has_preview)
Sets the display of a preview in a scientific text entry.
  set_text(new_text)
Sets the text a scientific text widget displays.

Method Details

__init__()
(Constructor)

Creates a new scientific text entry.
Returns:
A newly created scientific text entry.

get_entry()

Gets the entry widget of a scientific text entry.
Returns:
The entry widget, no reference is added.

get_has_preview()

Tests the display of a preview in a scientific text entry.
Returns:
True if there is a preview, False if preview is not shown.

get_text()

Gets the text in a scientific text entry.

The text is already in UTF-8 with all entities converted.
Returns:
The text as a newly allocated string. It should be freed when no longer used.

set_has_preview(has_preview)

Sets the display of a preview in a scientific text entry.
Parameters:
has_preview - True to display a preview, False to disable it. (bool)

set_text(new_text)

Sets the text a scientific text widget displays.

It can contain both UTF-8 and entities. UTF-8 characters corresponding to known entities are converted to entities, other characters are left as they are.
Parameters:
new_text - The text to display. (string)

Generated by Epydoc 2.1 on Tue Dec 30 04:01:42 2008 http://epydoc.sf.net