16

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@programming.dev 5 points 9 months ago

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.

[-] ALostInquirer@lemm.ee 2 points 9 months ago

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@programming.dev 3 points 9 months ago

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.

[-] squirmy_wormy@lemmy.world 2 points 9 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)

[-] ALostInquirer@lemm.ee 1 points 9 months ago* (last edited 9 months ago)

Thanks, I think that will help!

[-] best_username_ever@sh.itjust.works 2 points 6 months ago* (last edited 6 months ago)

The official one is https://pypi.org/project/PySide6/ and it includes some kind of designer for UI files (https://doc.qt.io/qtforpython-6/tools/pyside-designer.html). I use it at work to preview code meant for C++ and it works fine. The installation is easy too with pip.

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

Learn Programming

1616 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