Hello all,

I’m trying to get into GUI programming, but am hesitating on using a Python library to make my first barebones program. My goal is to code basic buttons and understand how operating systems implement the way they draw windows for applications.

I have coded mostly in scientific libraries or high-level languages that are fairly simple (Python, Matlab, Julia)… Also am familiar with basic concepts and syntax from C.

Looking for recommendations to start. I am happy to learn a new PL. Interested in writing code for legacy hardware and mobile. Bonus if the codes are general enough to be written for most displays one could interact with.

    • gronjo45@lemm.eeOP
      link
      fedilink
      arrow-up
      1
      ·
      5 days ago

      Thanks for your recommendation! I tried iced for a bit and couldn’t get anything easily working. Will try the beemax toga framework to get a basic introduction on GUI design.

    • gronjo45@lemm.eeOP
      link
      fedilink
      arrow-up
      1
      ·
      5 days ago

      This took me a bit to get back to, but after trying iced and realizing that the Rust PL doesn’t make much sense to me, this looks like a good place to start! Thinking in Python is MUCH easier for me.

      Not great to learn programming GUIs without knowing the design process simultaneously.

  • wuphysics87@lemmy.ml
    link
    fedilink
    arrow-up
    1
    ·
    2 months ago

    If you are interested into dipping your toes into rust land there is a library called Iced that I have used before. I at least like it better tham pyqt

    • gronjo45@lemm.eeOP
      link
      fedilink
      arrow-up
      1
      ·
      5 days ago

      Rust is still really difficult to read. I’ve attempted ice a couple of times so probably need a better introductory project.

      • wuphysics87@lemmy.ml
        link
        fedilink
        arrow-up
        2
        ·
        5 days ago

        If you do want to learn Rust, try Rustlings. It’s the best intro I’ve ever seen to a language. You are introduced to all of the concepts and data structures by debugging code, and you run it locally so you get a real development experience while you do it.

  • Eugenia@lemmy.ml
    link
    fedilink
    English
    arrow-up
    0
    ·
    2 months ago

    If you prefer non-kde apps, then consider Vala. It’s a young-ish language and it’s well suited for Gtk apps.

    • gronjo45@lemm.eeOP
      link
      fedilink
      arrow-up
      1
      ·
      5 days ago

      Sounds interesting. Didn’t know there were programming languages to interact with GTK.

  • Dessalines@lemmy.ml
    link
    fedilink
    arrow-up
    0
    ·
    2 months ago

    I don’t see much point in making GUI apps for desktop nowadays, especially since desktop usage is in decline compared to smartphones. If you still want to, I’d go with iced, which is in rust, and well designed.

    I’d recommend learning either android jetpack-compose, or iOS app dev.

    • gronjo45@lemm.eeOP
      link
      fedilink
      arrow-up
      2
      ·
      5 days ago

      Has been awhile since I made this post. Created some buttons and basic functionality, but Rust has been challenging to me. It’s not a language I can quite “think in” yet. Python’s or C’s syntax make more sense to me, but it’s a user problem on my part.

      Never have heard of jetpack-compose, and haven’t looked at any mobile development frameworks. More interested in making GUI applications for a range of hardware, mostly legacy.