rayoptics.gui.actions module¶
Definitions for user interface actions
Action classes are those that contain a dict called
actions
. Theactions
dict contains functions that are executed for UI actions corresponding to the keyword.
- Action keywords include:
- ‘press’ ‘drag’ ‘release’
The argument lists for the called functions include
fig
andevent
. Duck typing is relied on loosen the binding with a particular GUI implementation - or at least that’s the theory.
fig
must support a function refresh_gui()
-
class
SagAction
(surf)[source]¶ Bases:
object
Action to set the profile_cv via surface sag (related to x,y input)