Project Explorer Component¶
-
class
frontEnd.ProjectExplorer.
ProjectExplorer
¶ This class contains function:
- One work as a constructor(__init__).
- For saving data.
- for renaming project.
- for refreshing project.
- for removing project.
- for saving data.
-
enable_save
()¶ This function enables save button option.
-
refreshProject
()¶ This function refresh the project in explorer area by right clicking on project and selecting refresh option.
-
removeProject
()¶ This function removes the project in explorer area by right clicking on project and selecting remove option.
-
renameProject
()¶ This function renames the project present in project explorer area. It validates first:
- If project names is not empty.
- Project name does not contain spaces between them.
- Project name is different between what it was earlier.
- Project name should not exist.
After project name is changed, it recreates the project explorer tree.
-
save_data
()¶ This function saves data before it closes the given file. It first opens file in write-mode, write operation is performed, closes that file and then it closes window.