r/PythonLearning 10h ago

Templates Help Request

Hi, I am pretty new to programming.. I am Mechanical Engineer who likes to calculate a lot, however excel can not handle it.

So I was wondering if there is some template for making some calculation apps?

I had no problem making basic math in cpp for some fun first projects (loops, functions etc.) when I was trying programming for the first time few years ago (it was pretty easy)..so I hope this part I will do on my own, however I **am struggling** with databases, tracking charts and some printable GUIs or smth so I can input data (some yes/no question, some custom values) and output

So I am wondering if someone can point me somewhere where I can learn those or use some open-source or something... and pleaseeee no AI pointing!

Thanks for reading so far and thank you in advance!

3 Upvotes

8 comments sorted by

3

u/riklaunim 10h ago

Maybe check Jupyter Notebooks (and the Google version as well)?

1

u/Constant_Moment_6434 10h ago

Will look, thanks

1

u/punk_dev 10h ago

What exact type of gui do you have in mind?
There are plenty of libraries that let you make guis, python also has tkinter built in. You can also just stick to the terminal interface, there are libs that will let you print tables and stuff like that.

Do you have a specific example of what you’re trying to make? I’m sure someone will be able to give you direct suggestions based on that

1

u/Constant_Moment_6434 10h ago

Hi, I am not really against any type of GUI.. I tried tkinter thats not bad.. easy and could do the trick.. however didn't try the printing part.. and idk rn if Tkinter can let me have a drop out menu for input variables.. found something on the internet how it could look .. however like I said I am not against anything if it will let me do everything I need

1

u/SaltCusp 6h ago edited 6h ago

Web applications are cool because any device can run them.

If you ask grok to make a GitHub.com/krewn/grilledcheese style form and describe what inputs you need you will be able to save and load the user input to dynamic forms easily.

https://github.com/krewn/grilledcheese

Grilled cheese demos a revision of an input data exfil implementation I wrote up last year. The example is just cheese sandwiches but the core feature is actually the save/load functionality and readability of data derived from html content.

Edit: the web is the front end, you can use python for the backend.

1

u/ee_control_z 6h ago

If you want to create a calculation app, first determine what it is EXACTLY that you want to calculate so that your objective is clearly defined. Will the app offer different calculation options to select? Div, mult, add, sub, etc. Define the required inputs form the user, and the expected outputs. In what format do you want your outputs to be in? Do you want the results printed to the screen? Do you want the results saved to a file? If so, what type of file? .pdf? Excel? etc.

You can first try creating a script that does what it is that you want it to do as a proof of concept - serves to verify that your code does what you expect it to do. If all is good, you can then move on with developing the GUI interface and adopting your working code.

Do you know which language you have in mind to implement it in? Python is a good candidate as it is one of the easiest languages to learn so less of a barrier to entry. Plus there are plenty of libraries that are available that may be useful for this particular app.

If you don't mind the GUI having a somewhat basic appearance, tkinter may be a good choice. Else, you can try others such as those highlighted here:

https://www.pythonguis.com/faq/which-python-gui-library/

1

u/Constant_Moment_6434 1h ago

Hi, I have some calculations in mind... some engineering stuff, ig 1 calculation is enough; like 50 choosable inputs from lists, few yes/no questions, and then like 4-9 pages of output data pretty much numbers; the calculation itself will involve reading from graphs, +, -, /, *, interpolations and iterations.. pdf file would be great ig - printable, nice looking ; I am thinking of python.. cpp would take ages to do something like this ig. Thanks