Selection
Bases:
object
A class that encapsulates a selection with a description.
This class holds the details of a selection, including a timestamp of when the selection was created or modified. It provides the ability to update the timestamp to the current time.
- Parameters
description (str) – A brief description of the selection.
selection – The actual content of the selection.
Methods
__init__
(description, selection)Initialize a new Selection instance with the given description and selection data.
touch
()Updates the timestamp of the selection to the current time.
Initialize a new Selection instance with the given description and selection data.
Updates the timestamp of the selection to the current time.