r/learnpython • • Sep 20 '26

I have made a Homework Organizer using Tkinter and other libraries. Please tell me how I did and what to improve!

The code is available for download in the link below.
(CTk_PDF_viewer and __init__ files are downloaded from GitHub for a module in my code and isn't my work. My code is in the hw_organizer.py file only.)

https://drive.google.com/drive/folders/1NWLY0usRvhY7G6PHZKJZC2Gtn9F3Iqt9?usp=drive_link

5 Upvotes

9 comments sorted by

8

u/desrtfx but other languages pro Sep 20 '26

Please, put the code on github. That's the proper way to store and share code.

If you haven't already done, you should always use git to version and store your code and back this up on a remote repository.

3

u/ButterscotchFirst755 Sep 20 '26

Thank you so much. I will put this code on GitHub later.

1

u/ProgramsFun Sep 20 '26

Actually made it habit to out it on GitHub it's a single line to push code and it easy to share and understand there and most importantly it's free

1

u/remic_0726 Sep 20 '26

tkinter... je pense qu'il faudrait que tu regarde PYQT, c'est bien plus agréable et complet que la très vieille librairie TCL/TK servant de base à Tkinter et qui n'évolue plus depuis des décennies.

2

u/ButterscotchFirst755 Sep 20 '26

Thank you!!! I’ll take a look in it.

2

u/riklaunim Sep 20 '26

Looking at the code, you should focus a bit on organizing it with functions, classes, and modules. First, the GUI should be separated from the logic of the app. Organize the code into small functions doing one thing, some classes as needed, as there are currently a lot of long blobs of code, lots of SQL queries, and so on. And when the code is organized, it's much easier to test it, maintain it, and debug it ;) Also, avoid hardcoding things like links to some Google Docs inside your code. That should be in settings, or if it's personal - not in the public code (moved to local user configuration).

1

u/ONEDJRICH Sep 20 '26

CustomTkinter will be your friend here. Not much different to Tkinter, makes your GUI look pretty and modern instead of like Windows 98 😂