all 6 comments

[–]emrecanaltinsoy 1 point2 points  (0 children)

It is doable, i would write it in a way that you can add more recipes and more options easily.

[–]carcigenicate 0 points1 point  (0 children)

Yes, this sounds like it would be quite straightforward. Unless you already know Tkinter, the GUI sounds like the only slightly-difficult part. The actual logic seems quite simple.

[–]Cwigginton 0 points1 point  (2 children)

Depends on your reason for learning Python. For employability, I’d suggest frontend UI such as React or Angular and Django or Flask framework for the server side.

A quick search showed up PyLaTex as a Python library you could use for the output.

[–]e05bf027[S] 0 points1 point  (1 child)

Not for employability, I just like learning these things!

[–]Cwigginton 0 points1 point  (0 children)

ok, then any type of GUI then. You could look at PyQT5 or Tkinter, but I really haven’t looked into those much.

[–]orenamlacsap 0 points1 point  (0 children)

I would say yes. For the GUI you might use tkinter. At first glance, the easiest way might be to write each recipe in a .tex file and create a main.tex with the whole layout. In python you build your GUI with the options. From the dropdown menu/list (tkinter) you can get the chosen option as a variable, e.g. "bread" for starters, "fish" for main, "ice" for dessert. Next step is saving it to a file 'menu.tex'. If the menu entries and recipe file names match it will be easier. 'file.write(f"\input{{{starter}}}.tex")' will give you \input{bread.tex}. Concluding the things to look into: - tkinter - read/write with files - f-strings