Skip to content

Conversation

jmartinez281
Copy link

@jmartinez281 jmartinez281 commented Jul 27, 2025

"I added keyboard shortcuts for new, open, save, and exit functionalities. Also implemented a custom flag to track text modifications and a prompt for unsaved changes on exit. I also saw that the code was using global, which is discouraged in object-oriented design. So, I encapsulated text and file into instance variables (i.e., self.text and self.file). This improves the maintainability and avoids the use of global. "

"I added keyboard shortcuts for new, open, save,
and exit functionalities. Also implemented a
custom flag to track text modifications and
a prompt for unsaved changes on exit."
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant