Python Tkinter

What's the catch? No one seems to actually use tkinter beyond beginner CS courses. Is being ugly the only reason people use Qt or Electron instead?

Ape Out Shirt $21.68

Tip Your Landlord Shirt $21.68

Ape Out Shirt $21.68

  1. 2 months ago
    Anonymous

    Who the frick writes desktop GUI applications in python

    • 2 months ago
      Anonymous

      the PyQt/PySide people seem to be churning out a lot of shit, same for the data science people who want something a step above their jupyter notebooks

    • 2 months ago
      Anonymous

      Ugly, really. Ugly programs don't sell, nobody wants to use them. The widgets are clunky and hard to use and theme properly.

      I do. One of the consulting gig niches I've found for myself is converting excel spreadsheets to custom python programs for boomer companies. Last month I finished a cattle vaccination and medical checkup program, got paid a cool $3k for maybe 4 days of work.

      • 2 months ago
        Anonymous

        >converting excel spreadsheets to custom python programs for boomer companies.
        How do you do that? I work with excel heavily and that'd be very nice to learn, I have some minor Python experience.

        • 2 months ago
          Anonymous

          I get the spreadsheet with some sample data, usually the formulas or the VBScript source code, and then make a new program around them. There's no easy method.

          • 2 months ago
            Anonymous

            I see, probably not quite applicable for what I do then since there's no standard format. Still interesting.

      • 2 months ago
        Anonymous

        So what do you use? Im thinking of making a gui for a midi sequencer Im working on, something like pic rel but with more minimalistic ui design. Prefer not to use qt if I can help it

      • 2 months ago
        Anonymous

        >ugly
        https://ttkbootstrap.readthedocs.io/en/latest/

    • 2 months ago
      Anonymous

      why not

  2. 2 months ago
    Anonymous

    I think the issue is that it doesn't have many advanced widgets, you have to implement a lot of stuff yourself. Which has been enough for the project I'm working on. QT might be a nicer future-proof skill but then again you have to evade paying the license if you go commercial etc. There's also wxWidgets which seems to have more widgets but I heard is less stable than tkinter.

    • 2 months ago
      Anonymous

      the licensing mess kept me off from Qt as well. I really like Qt Creator tho, it's a really polished experience that I've never found elsewhere

  3. 2 months ago
    Anonymous

    >windows

    • 2 months ago
      Anonymous

      I'm a debian chad, but this was what I found off google.

  4. 2 months ago
    Anonymous

    pyside6 is kinda heavy

    • 2 months ago
      Anonymous

      I agree with you that's why I looked into Tkinter in the first place since it's already bundled in the Python standard library. Which is why I'm surprised that no one seems to use it. I understand why no one uses ncurses that python bundles since TUI aren't popular but the tkinter stuff looked like a good deal to me

  5. 2 months ago
    Anonymous

    It just werks, but it's really basic. UI is done with javascript these days, that's just how the work is done. That is why people use Electron, it's just massively more flexible and modern than tkinter. I have made some tools with tkinter, one of them even had other people using it for a while.

    • 2 months ago
      Anonymous

      >Electron
      Yep not using it. Way too heavy to be of value

  6. 2 months ago
    Anonymous

    Custom tkinter is ok for throwing together a very basic UI, where you don't need multi-purpose windows or the like.

    https://github.com/TomSchimansky/CustomTkinter

  7. 2 months ago
    Anonymous

    I use Tkinter with Matplotlib.

  8. 2 months ago
    Anonymous

    what is the loicense problem withqt exactly? not for commerical apps?

  9. 2 months ago
    Anonymous

    I'm not seeing direct fees on license, they sell development packages

  10. 2 months ago
    Anonymous

    >making a desktop app in 2024
    What app do you need make that doesn't already exist? Honest question man

  11. 2 months ago
    Anonymous

    why wouldn't you use flutter the obviously superior UI choice

    • 2 months ago
      Anonymous

      >using shitware made by google
      do americans really?

      • 2 months ago
        Anonymous

        Not an argument.

  12. 2 months ago
    Anonymous

    import gi

    gi.require_version("Gtk", "3.0")
    from gi.repository import Gtk

    class MyWindow(Gtk.Window):
    def __init__(self):
    super().__init__(title="Hello World")

    self.button = Gtk.Button(label="Click Here")
    self.button.connect("clicked", self.on_button_clicked)
    self.add(self.button)

    def on_button_clicked(self, widget):
    print("Hello World")

    win = MyWindow()
    win.connect("destroy", Gtk.main_quit)
    win.show_all()
    Gtk.main()

    https://python-gtk-3-tutorial.readthedocs.io/en/latest/introduction.html

    Works OOTB on LMDE 6.

  13. 2 months ago
    Anonymous

    Poor fractional scaling support (unless something had changed the last 2 years) and you've to reimplement tons of shit yourself cause is a very barebones toolkit.

Your email address will not be published. Required fields are marked *