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)?

  • slurp@programming.dev
    ·
    5 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
      hexagon
      ·
      5 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
        ·
        5 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.

  • RonSijm@programming.dev
    ·
    5 months ago

    When you said "GUI Programming" What kind of GUI are you talking about? A web-based GUI or a desktop-based GUI?

    Web-based the go to framework is generally React or Angular.

    If you're talking about Desktop based, you probably want to stick with the language that you're also building the logic in. Like you could use another language like C# and write a front-end in Avalonia, but then you'd have to interlop from C# to Python.

    You could also pick a language that's supported by Electron, then you'd basically be doing Web-Development but for desktop.

    • ALostInquirer@lemm.ee
      hexagon
      ·
      5 months ago

      Oof, sorry, slipped my mind! I'd meant desktop-based (or device-based may be better these days?).

      • RonSijm@programming.dev
        ·
        5 months ago

        Well "Device based" is even more broad, haha. If you're also including iOS and Android.

        Then you'd be looking at a cross-platform developing lanuage, like Flutter, React Native, Xamarin etc.

        So the question is, what is the goal for your GUI? Is this a personal project where you just want to have a GUI for a specific system? (Windows / iOS system) - Or something published that you want people to be able to use on all devices?

        • ALostInquirer@lemm.ee
          hexagon
          ·
          5 months ago

          Is this a personal project where you just want to have a GUI for a specific system?

          Mainly this tbh, in which case the answer for myself would be to limit to preferred platform, so I'll focus mainly on desktops. I've skimmed over web stuff and it gets brambly fast from what I can tell, which also applies for cross-platform in terms of devices as you've reminded me. 😅 Overall it's to simply learn how, as I enjoy good GUIs and think it might be nice to be able to make some.

  • Tom@programming.dev
    ·
    5 months ago

    While so many things are so much better than they used to be in the programming ecosystem, I feel like entry-level GUI programming is so much worse.

    This will probably be an unpopular opinion, but Visual Basic (pre .NET) was one of the easiest ways to make a simple, contemporary (for the time) GUI. Drag and drop some elements, modify the UI properties, double click and add code. It made for an excellent introduction to programming because the UI portions were simple and intuitive enough to stay out of the way.

    The rest of VB wasn't great. Weird language/syntax/keywords keywords, closed environment, mediocre tooling. But for building UIs? I haven't used anything as easy as that and it's been over 20 years now...

    I don't have any recommendations unfortunately. Almost everything I do is web based or command line. Web UIs aren't terrible, but there's a learning curve and lots of limitations. Haven't found anything for desktop apps I like lately (last one I built was also with tkinter for a small Python project. Bleh.)

  • kSPvhmTOlwvMd7Y7E@programming.dev
    ·
    5 months ago

    Sorry to that guy, but Python is a terrible choice for GUI. It simply doesn't even exist in the wild, except in newbies' minds. You should pick something that allows you to* easily & immediately* reload your GUI in progress without restarting the program; AND also maybe think about how to distribute your GUI on other computers without requiring them to duplicate your python setup

    • ALostInquirer@lemm.ee
      hexagon
      ·
      5 months ago

      Tbh it's not really what I was going for for learning GUI stuff, it's just the language I'm more familiar with. It sounds like you have something that may be better in mind, in which case what might that be? Also to clarify, I'm more interested in desktop-based GUI programming/development.