Python Forum
Another app idea - interactive tkinter sketchpad
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Another app idea - interactive tkinter sketchpad
#1
Things that make you go, hmm...

I'm new, but I have lots of curiosity. I'm not stuck on any coding right now, but I am trying to find interesting (to me, but maybe to others as well) projects to build a virtuous learning cycle in my own efforts. I get bored easily, but thankfully python is VAST :).

One I've been spitballing prior to doing a prototype is related to another gap I perceive in my own ecosystem. I do tkinter for simple gui front-ends for projects that I start as terminal apps. There's a lot of templateable coding in doing gui that isn't really interesting to me to work on (boring and repetitive, I mean), but it's gotta be done. The tooling on gui in python is, let's just call it limited, to be kind. Anyhow, again drawing from my own experience, I've seen some good and not so good approaches to visual gui design tools, some of the better ones, in my personal preference order are vb, netbeans, visual studio more broadly, xcode, qt studio, glade. I haven't really seen anything tkinter that I've thought helpful.

So, I've been thinking of creating a dsl (maybe there's a trend to my thinking here) to do on-the-fly simple gui design in real time. Not a full-fledged gui, but something declarative, immediate and useful... interactively build a form, when it's close enough, persist the python presentation code and handlers. Wouldn't be designed for absolution positioning or complex guis, but a quick gimme a frame, label, textbox or three, couple of buttons, their handlers and save it.

Just a thought experiment at this point, but I'm tired of typing the same code over and over and over. The widget set is relatively fixed as are the adjustable properties, the complexity would lie with the dsl - as it grows, so grows the permuations.

Good idea or meh?

Thanks,

Will
Reply
#2
I get where you’re coming from. I’ve had the same “ugh, not again” feeling with tkinter boilerplate. A DSL could be pretty neat, especially if it spits out the boring setup code and lets you focus on the logic. Even a lightweight syntax that says “form with 2 textboxes + button” and generates the handlers would save time. Kinda like a middle ground between hard-coding and using a full designer like Qt Designer. If you actually build it, I’d definitely try it out.
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  initializing interactive mode Skaperen 4 2,701 Jun-02-2024, 03:29 AM
Last Post: Skaperen

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020