lainchan / λ
Absolute complete beginner Lain here
Yamaoto Toshi · 2023-01-18 01:50
Where and how can I learn to build GUIs or apps? Is it possible with Python or would I be better off learning something else? Could you point me to ressources or guides?
My first little project would be to build a little GUI or app or whatever to automate FFMPEG tasks. I'm tired of always having to edit lines before inputting them in the command prompt; it takes too much time.
And I guess another project I'd have in mind is to create a little thing that automatically uploads albums with the correct metadata and everything to youtube.
I don't care if those things already exist, I just want to create something, anything, on my own.
puang · 2023-01-18 02:06
Look into tkinter docs (https://docs.python.org/3/library/tk.html) if you are interested in building simple GUI apps with Python
Nguoi La · 2023-01-18 03:47
>>33980
Clarify "simple."
Would the latter idea be achievable with tkinter? Building an app that uploads albums to youtube automatically, metadata and all?
Yet Another Lainon · 2023-01-18 04:40
>>33980
>>33981
Okay, I've looked into tkinter and did some tutorials on youtube. Then I stumbled onto PyQT and the QT-Designer though. Wouldn't that be better to learn for what I aim to do? I don't want to start learning the wrong thing, if you know what I mean.
puang · 2023-01-18 06:03
>>33982
tkinter is basic GUI toolkit and is usually suggested to beginners who dont have any past experience with python GUI. You can however move to PyQT once you gain confidence with tkinter.
Though if you want to speedrun your project without wasting any time then sure grind PyQT. You'll have more options with pyqt
Netrunner · 2023-01-18 07:25
>>33979
A wise man once told me: "It does not matter what language you use, if you understand the logic behind something,"
So Python or no Python isn't the question if people wrote GUIs in the 80s with ASM.
Also if you are an absolute beginner, I would not jump into GUI first. Learn to love the terminal and the logic first.
So to answer your question. No idea. I just love my white on black. I did take a bit of a look at GTK. And yeah that exists too if you hate the easy way.
Kay · 2023-01-18 09:12
>>33985
I agree with this. The example ideas you gave could all be easily created as command line applications; a GUI would add nothing.
However, these sorts of projects could be made with GUIs in python, and tkinter seems like the library for these such projects because you don't need anything more than buttons and entry boxes really.
https://www.tutorialspoint.com/python3/index.htm
This is good for reference, but once you know even how to just add numbers, start programming. It's the best way to learn.
Nobody important · 2023-01-18 09:15
>>33979
Use Python 3 ( >>33751 ) and Tkinter library. It's the easiest way to make a GUI.
Emmanuel · 2023-01-18 14:02
Op here, started reading Think Python by Allen B. Downey. Shit ton of terminology getting dumped on me in the first few passages alone, confusing as all hell. Decided to start from scratch and learn the basics first, I guess. Wish me luck.
Zero Cool · 2023-01-18 16:47
>>33980
>>33990
tkinter is not easy to use and I do not recommend it, the only use case for it is if you are limited or want to stick to the standard library, Its also ugly. Id recommend PyQt as it is a lot nicer to look at and build with. Additionally there are a lot more resources and examples available for the current year.
Linda Lee · 2023-01-18 19:36
>>33979
>My first little project would be to build a little GUI or app or whatever to automate FFMPEG tasks. I'm tired of always having to edit lines before inputting them in the command prompt; it takes too much time.
>And I guess another project I'd have in mind is to create a little thing that automatically uploads albums with the correct metadata and everything to youtube.
are you sure a GUI would better for this than writing a script?
Gargoyle · 2023-01-23 04:37
>>33985
i googled this question before but i couldn't find answers, how does one make a gui with assembly? i had assembly classes in university but the idea of making something graphical with it, no idea how that can be.
Haruyoshi · 2023-01-23 12:11
>>34072
The problem is that Assembly generally isn't used for tasks where a GUI would be useful or even really make any sense, like embedded and systems programming. And the cases where you would use it in a GUI program are almost all small bits of Assembly embedded in a C or C++ program, with the GUI stuff being taken care of in the higher-level part.
Joe Bloggs · 2023-01-24 08:55
>>34072
IIRC, Programming from the Ground Up book has a chapter on it: https://savannah.nongnu.org/projects/pgubook
J.C. Denton · 2023-01-26 19:51
>>33979
My personal view is to just go with the classics. Learn Qt or GTK by installing a library for it and just start coding.
Python is probably the best since there's a library for everything. I don't even have to google it but there's no doubt in my mind that there's an ffmpeg library for python that will probably work.
overriding · 2023-01-27 17:13
>>34072
you have to interface with the os even if you're just drawing pixels to a buffer and not using the os gui libraries.
so you need to call into external libraries just like in c.
if you're on a computer that gives you full access to the hardware like a c64 or game console you can just talk straight to the gpu though.