holypipette.gui.paramecium_droplet module

GUI for Paramecium electrophysiology

class holypipette.gui.paramecium_droplet.ParameciumDropletGui(camera, pipette_interface)[source]

Bases: ManipulatorGui

paramecium_command_signal
paramecium_reset_signal
register_commands()[source]

Tie keypresses and mouse clicks to commands. Should call register_key_action and register_mouse_action. Overriding methods in subclass should call the superclass if they want to keep the commands registered by the superclass(es).

show_paramecium(pixmap)[source]
track_paramecium(frame)[source]
holypipette.gui.paramecium_droplet.create_painter(pixmap, color, width=1)[source]

Setup a QPainter with a QPen of a given color and width.

Parameters:
  • pixmap (QPixMap) – The pixmap on which to draw.

  • color (tuple) – The 4-element tuple defining the color (R, G, B, alpha).

  • width (int) – The width in pixels.

Returns:

painter – The painter that can be used for drawing on the pixmap.

Return type:

QPainter

holypipette.gui.paramecium_droplet.draw_contour(contour, painter, scale)[source]
holypipette.gui.paramecium_droplet.draw_ellipse(painter, x, y, width, height, angle, pixel_per_um, scale)[source]