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

Class DataWindow

source code

Instance Methods [hide private]
 
__init__(data_view)
Creates a new data displaying window.
source code
 
get_data_view()
Returns the data view widget a data window currently shows.
source code
 
get_color_axis()
Returns the color axis widget displayed by a data window.
source code
 
get_data()
Returns the data for the data view a data window currently shows.
source code
 
set_zoom(izoom)
Sets the zoom of a data window to izoom.
source code
 
fit_to_screen()
Sets the zoom of data windows's data view in an attempt to make the window fit to the screen.
source code
 
get_data_name()
Gets the data name part of a data window's title.
source code
 
set_data_name(data_name)
Sets the data name of a data window.
source code
 
get_ul_corner_widget()
Returns the upper left corner widget of data_window.
source code
 
set_ul_corner_widget(corner)
Sets the widget in upper left corner of a data window to corner.
source code
Method Details [hide private]

__init__(data_view)
(Constructor)

source code 

Creates a new data displaying window.

Parameters:
  • data_view - A DataView containing the data-displaying widget to show. (DataView)
Returns:
A newly created widget, as GtkWidget. (gtk.Widget)

get_data_view()

source code 

Returns the data view widget a data window currently shows.

Returns:
The currently shown data view. (DataView)

get_color_axis()

source code 

Returns the color axis widget displayed by a data window.

Returns:
The color axis. (gtk.Widget)

get_data()

source code 

Returns the data for the data view a data window currently shows.

Returns:
The data as Container. (Container)

set_zoom(izoom)

source code 

Sets the zoom of a data window to izoom.

When izoom is -1 it zooms out; when izoom is 1 it zooms out. Otherwise the new zoom value is set to izoom/10000.

Parameters:
  • izoom - The new zoom value (as an integer). (int)

fit_to_screen()

source code 

Sets the zoom of data windows's data view in an attempt to make the window fit to the screen.

Since: 2.56

get_data_name()

source code 

Gets the data name part of a data window's title.

Returns:
The data name as a string owned by the window. (string)

set_data_name(data_name)

source code 

Sets the data name of a data window.

The data name is used in the window's title.

Parameters:
  • data_name - New data name. (string)

get_ul_corner_widget()

source code 

Returns the upper left corner widget of data_window.

Returns:
The upper left corner widget as a GtkWidget, None if there is no such widget. (gtk.Widget)

set_ul_corner_widget(corner)

source code 

Sets the widget in upper left corner of a data window to corner.

Parameters:
  • corner - A widget to set as upper left corner widget, many be None to just remove any eventual existing one. (gtk.Widget)