fsleyes.actions.savelayout
¶
This module provides the SaveLayoutAction
class, an action
which allows the user to save the current layout.
- class fsleyes.actions.savelayout.SaveLayoutAction(overlayList, displayCtx, frame)[source]¶
Bases:
fsleyes.actions.base.Action
The
SaveLayoutAction
allows the user to save the currentFSLeyesFrame
layout, so it can be restored at a later time. See thelayouts
module.- __init__(overlayList, displayCtx, frame)[source]¶
Create a
SaveLayoutAction
.- Parameters
overlayList – The
OverlayList
displayCtx – The
DisplayContext
frame – The
FSLeyesFrame
.
- __saveLayout()¶
Save the current
FSLeyesFrame
layout. The user is prompted to enter a name, and the current frame layout is saved via thelayouts.saveLayout()
function.
- __annotations__ = {}¶
- __module__ = 'fsleyes.actions.savelayout'¶