r/PythonLearning • • Aug 22 '25

I am very happy because today I programmed the first project in my life

Post image

The project idea is a daily task management program: you add a task, delete it, and note the completion. Tomorrow, I will transform it into an interface with buttons and a graphical user interface using a GUI. God willing, I will develop it further in the future.

323 Upvotes

33 comments sorted by

4

u/[deleted] Aug 22 '25

It will be user friendly once you add the GUI in this.

2

u/ProfessionalStuff467 Aug 22 '25

Yes, this is what I wanted too.

3

u/gigsoll Aug 22 '25 edited Aug 22 '25

Well done 👍 I think it would be nice if you add the ability to store your tasks before creating a gui. It seems like you can only add them but when the program is stopped all the tasks are reset. Also for your menu item choices match case is better option

2

u/ProfessionalStuff467 Aug 22 '25

Umm I said that I will add an interface using a GUI and then store the tasks, but I expect that I will store the tasks first and then add an interface with buttons.

2

u/gigsoll Aug 22 '25

Yeah, storing tasks seems like a more important piece of functionality, good luck with it

2

u/ProfessionalStuff467 Aug 22 '25

I've already done that, saved the tasks and set up the GUI interface.

2

u/gigsoll Aug 22 '25

Great, it is nice you are reading and writing JSON, I think it would be nice to tell a user that tasks weren't loaded and ask if they want to reselect the path or create a new tasks list

1

u/ProfessionalStuff467 Aug 22 '25

Umm, I am now thinking of making it a desktop app and leaving these commands until I want to develop it, but I do not know how to do it. Do you have an idea?

2

u/gigsoll Aug 22 '25 edited Aug 22 '25

Yes, you need to separate your code into modules. Currently, your GUI and task managing logic are intertwined and need to be separated. I would suggest you to create two files, like task_manager.py and gui.py then put all the logic to work with tasks list in task_manager.py and make sure it can work perform every operation with a list. If you don't feel ready to create a class for task manager for now, you may just leave a list of tasks as a global variable as it is, but beware that global variables isn't a good practice. After you are done with your task management functionality you can import it in gui.py but they need to be in the same folder. Basically you need to achieve something like this

# task_manager.py
task_list = []
def f1(): ...
def f2(): ...

and then

# gui.py
import task_manager
print(task_manager.task_list)
task_manager.f1()

2

u/ProfessionalStuff467 Aug 22 '25

Will this help me make it as a desktop application?

2

u/Ill-Advertising-4345 Aug 22 '25

I would rather (before making a gui) make a save and load function so when you close and start the program again, the tasks are still available. Use JSON for that!

2

u/ProfessionalStuff467 Aug 22 '25

Okay, that's what I'm going to do.

2

u/[deleted] Aug 24 '25

يالبيه استمر

2

u/its_lea_ Aug 24 '25

مهاراتك كويسه في البايثون اضن انك مستوعب اغلب اساسيات لغة

1

u/ProfessionalStuff467 Aug 24 '25

شوية بس انا لساتني اتعلم

2

u/its_lea_ Aug 24 '25

انصحك تتعلم c بعد بايثون هتكون شويه مقرفه في تعلم بس انت عندك الأساسيات

2

u/ProfessionalStuff467 Aug 24 '25

انا الان اتعلم البايثون و احاول اصمم مشاريع زي تطبيقات و كذا و ايضا انا اتعلم الهكر الاخلاقي و ممكن لو تطلب الامر اتعلم لغة سي

2

u/OLIVER-queen1234 Aug 24 '25

Hey how did u start learning python ? Can you share the resources iam trying to learn python as an beginnner I tried learning from YouTube I feel like iam stuck finding the right video Any inputs ?

2

u/ProfessionalStuff467 Aug 24 '25

Hello, I would be happy if I could help you. First, let me explain something to you. At the beginning of my learning of Python, I found a video that I expect was 6 hours long, teaching the language. The important thing is that I did not watch it all because I felt it was just a waste of time, but I benefited from it on how to install Python and Pyharm. The important thing is that the same channel that was showing the video, I found a website with free and paid courses. The important thing is that the Python course was free, but I did not like the website’s method of teaching (this is my personal opinion, it differs from person to person). It is known that the video on YouTube and the free course were in Arabic. Let’s continue. The important thing is that I searched well until I found a website called sololearn, which is in simple English. Anyone can understand it. The important thing is that it is very useful, and I advise you to use it to understand the basics. After that, it is necessary to start making projects such as a calculator or a simple task application. The important thing is that you try, even if you fail. My advice to you is that if you want to use ChatGPT, that’s okay, but don’t let it be the one who creates the code for you. Just try to ask about the method, and if you have a question, ask me. I will definitely answer you

2

u/explorer_0627 Sep 03 '25

Thank you so much for this detailed explanation, however I checked that sololearn is a paid website to practice python code as I'm struggling hard to practice and write my own short projects.

1

u/ProfessionalStuff467 Sep 03 '25

Listen to me this is not a problem because even I was facing the same thing but you can download Python in your computer and write and copy those codes and you will see what will happen and this way you will not need to pay it is easy

2

u/Any_Highlight5019 Aug 27 '25

This is great, I also have my to-do app, it has the ability to save tasks such that even when you close or exit the program the tasks are still there

1

u/ProfessionalStuff467 Aug 27 '25

I even added the feature of saving tasks, but now I program to a calculator.

2

u/[deleted] Aug 29 '25

How to add GUI I don’t know anyone here can you please tell me but the code is cool.

2

u/ProfessionalStuff467 Aug 30 '25

I will tell you everything but I need to know do you want me to tell you the details and give you examples or just give you an idea?

2

u/[deleted] Aug 31 '25

I mean does adding GUI means adding frontend or something else if something thing else you can just give the idea.

2

u/[deleted] Aug 22 '25

[removed] — view removed comment

2

u/ProfessionalStuff467 Aug 22 '25

Wow did you make a website and put your app there so people can download it you are really awesome and by the way are you an Arab because your name suggests that

2

u/[deleted] Aug 22 '25

[removed] — view removed comment

2

u/ProfessionalStuff467 Aug 22 '25

حتى انا عربية احس انت مغربي؟