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
andregister_mouse_action
. Overriding methods in subclass should call the superclass if they want to keep the commands registered by the superclass(es).
- holypipette.gui.paramecium_droplet.create_painter(pixmap, color, width=1)[source]¶
Setup a
QPainter
with aQPen
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