Sisyphe.core.sisypheRecent
External packages/modules
PyQt5, Qt GUI, https://www.riverbankcomputing.com/software/pyqt/
- class Sisyphe.core.sisypheRecent.SisypheRecent(n: int = 10)
SisypheRecent class
Description
Manage a persistent list of recently opened files. It includes methods for adding, removing, and retrieving files from the list, as well as saving and loading the list to/from an XML file.
Inheritance
object -> SisypheRecent
Creation: 27/10/2022 Last revision: 14/12/2023
- append(filename: str) None
Add a file name in the recent list of the current SisypheRecent instance.
Parameters
- filenamestr
file name
- clear() None
Clear the recent list of the current SisypheRecent instance.
- getFileCount() int
Get the number of files in the recent list of the current SisypheRecent instance.
Returns
- int
number of files in the recent list
- getFileList() list[str]
Get the list of files in the recent list of the current SisypheRecent instance.
Returns
- list[str]
list of recent files
- getMaximumCount() int
Get the maximum number of files in the recent list of the current SisypheRecent instance.
Returns
- int
maximum number of files in the recent list
- load() None
Load the recent list of the current SisypheRecent instance from the recent.xml file in the user directory (~/.PySisyphe).
- save() None
Save the recent list of the current SisypheRecent instance in the recent.xml file in the user directory (~/.PySisyphe).