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

Class SciText

source code

Instance Methods [hide private]
 
__init__()
Creates a new scientific text entry.
source code
 
get_text()
Gets the text in a scientific text entry.
source code
 
set_text(new_text)
Sets the text a scientific text widget displays.
source code
 
get_has_preview()
Tests the display of a preview in a scientific text entry.
source code
 
set_has_preview(has_preview)
Sets the display of a preview in a scientific text entry.
source code
 
get_entry()
Gets the entry widget of a scientific text entry.
source code
Method Details [hide private]

__init__()
(Constructor)

source code 

Creates a new scientific text entry.

Returns:
A newly created scientific text entry. (gtk.Widget)

get_text()

source code 

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. (string)

set_text(new_text)

source code 

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)

get_has_preview()

source code 

Tests the display of a preview in a scientific text entry.

Returns:
True if there is a preview, False if preview is not shown. (bool)

set_has_preview(has_preview)

source code 

Sets the display of a preview in a scientific text entry.

Parameters:
  • has_preview - True to display a preview, False to disable it. (bool)

get_entry()

source code 

Gets the entry widget of a scientific text entry.

Returns:
The entry widget, no reference is added. (gtk.Widget)