Cells_gtk Module

class Cells_gtk.CellsPanel(state)[source]

A class displaying a cell panel with lot of options to edit them

add_cell(name, cell)[source]
click(tup)[source]
delete_cell(name)[source]

Function that delete a cell

draw(im)[source]

Function that return an image with the cells that have to be displayed

end_progress(window)[source]

Destroys the window with the progress bar. Returns an iterator

export_progress_bar(cells_list, export_kw)[source]

Function that manage everything to create a progress bar and export the data specified by both the list of cells (cells_list), a list of tuples of format (cell_object, channel_to_export) and the export keyword corresponding to the function to use for the export (for instance self.export_tiff) that bind to the export function in the cell. The export keyword can be ‘tiff’ or ‘csv’ for the moment.

hide_show_change(q, qq=None)[source]
hide_show_new_cell_panel(celltype=None)[source]
hide_show_panel(hide=None)[source]

hide=None means ‘switch state’

init_panel()[source]

Initialize the panel in the background. This is required to load cells from a file

make_iter_progress(it, pb, label, incr, name)[source]

Returns an iterator that update everything; it: the cell iterator, that actually do the job pb: a progress abr instance label: a gtk label instance incr: the progress bar increment name: the name to set as the new label This function Never yields False because it will break the gobject. When yield False is needed, you should call the end_progress function at the end of the full iteration.

rb_toggled(w, cell)[source]

Function called when the user clicks on a radiobutton to select another cell

set_image_move(tup)[source]

Function called when the users keeps the left button pressed on the viewer panel

unclick()[source]

Function that forward the signal that the user has released the click to all cells

Previous topic

Cells Module

Next topic

Cells_menu_gtk Module

This Page