this post was submitted on 23 Jan 2024
17 points (100.0% liked)

Learn Programming

1640 readers
1 users here now

Posting Etiquette

  1. Ask the main part of your question in the title. This should be concise but informative.

  2. Provide everything up front. Don't make people fish for more details in the comments. Provide background information and examples.

  3. Be present for follow up questions. Don't ask for help and run away. Stick around to answer questions and provide more details.

  4. Ask about the problem you're trying to solve. Don't focus too much on debugging your exact solution, as you may be going down the wrong path. Include as much information as you can about what you ultimately are trying to achieve. See more on this here: https://xyproblem.info/

Icon base by Delapouite under CC BY 3.0 with modifications to add a gradient

founded 1 year ago
MODERATORS
 

I realize this is a very broad question, so to help I'll mention that my primary experience with any programming language is Python. I've looked into C and C++ as well, but I haven't written much in them; in part because they're more involved, and in part because I get lost in the IDE weeds with'em (whether choosing an IDE or getting it configured to even get started tbh, but that's mostly a different topic).

In Python I know there's an option in Tkinter, and I've worked with it to some extent but never got entirely comfortable with it. Maybe it would be best to try making some more stuff with it instead of bouncing around different things, but would that be advisable over something that may be better suited to the task?

If it would be better to stick with it, what might be some things you wish you'd known starting out with GUI programming (whether particular to Python or generally applicable)?

you are viewing a single comment's thread
view the rest of the comments
[–] slurp 5 points 10 months ago (5 children)

PyQt is pretty good and Qt is widely used, so may also be worth a look. The Qt designer is a nice way to separate out the look of the GUI elements, then work on connecting the app functionality to that after. I think the key is to start on something simple and work up, partially to learn the library and partially to learn the pitfalls of GUI development as you add features etc.

[–] [email protected] 2 points 10 months ago (4 children)

Is there something else like the Qt designer for working with PyQt/PySide? I looked on their site and even dug through to the open source licensed versions, but all the available installers seem to insist on making an account to proceed with installation. If that's a no-go, then I may still try it at some point just without that tool.

[–] slurp 3 points 10 months ago (2 children)

https://www.pythontutorial.net/pyqt/qt-designer/

This should help. I believe the .ui files will work with both PyQt and PySide but I haven't personally tried.

[–] [email protected] 2 points 10 months ago

Yeah they will. The .UI files are handled by the cpp lib, so any wrapping lib will know what to do (code completion is a bitch with it though)

[–] [email protected] 1 points 10 months ago* (last edited 10 months ago)

Thanks, I think that will help!

load more comments (1 replies)
load more comments (1 replies)