TE
TechEcho
Home24h TopNewestBestAskShowJobs
GitHubTwitter
Home

TechEcho

A tech news platform built with Next.js, providing global tech news and discussions.

GitHubTwitter

Home

HomeNewestBestAskShowJobs

Resources

HackerNews APIOriginal HackerNewsNext.js

© 2025 TechEcho. All rights reserved.

Show HN: Tkui – Python GUI maker that simulaneously edits the GUI and its editor

86 pointsby asrpover 8 years ago

8 comments

josephernestover 8 years ago
Why a post about UI, GUI makers, etc. without a single screenshot in the github&#x27;s README.md??<p>Please give us a mean to understand in 10 seconds what it&#x27;s about, by adding a screenshot or an animated screenshot (<a href="http:&#x2F;&#x2F;www.cockos.com&#x2F;licecap" rel="nofollow">http:&#x2F;&#x2F;www.cockos.com&#x2F;licecap</a> is cool for this) :)
评论 #13677659 未加载
评论 #13678297 未加载
评论 #13678774 未加载
评论 #13678290 未加载
评论 #13678288 未加载
asrpover 8 years ago
tkui is one of my joke side projects but it does run and serve a purpose. I was trying to make some quick GUIs in Python for my own use but always restarting the program when small details in the layout changes makes for a slow workflow (closing and reopening the program).<p>So I wanted to use a GUI editor. I don&#x27;t remember exactly but I think I didn&#x27;t find anything that suited (I know I at least looked online for a while). So I decided to make my own, which became tkui.<p>Now the editor is itself a GUI so it&#x27;d be awfully helpful to have a GUI editor to make it. Because time travel isn&#x27;t an option, I started from scratch and tried to add useful elements for create tkui itself. Of course, those elements are also the elements of tkui. So now tkui is a tkui maker.<p>If anyone have suggestions for &quot;build orders&quot; for recreating similar programs from scratch, I&#x27;d be interested to know.<p>I tried to make it so I need to restart tkui&#x2F;the current project as little as possible. I also tried to the keep the project small, although with both dependencies, its getting larger.
评论 #13676902 未加载
评论 #13676221 未加载
kelvin0over 8 years ago
I use wxFormBuilder and export the GUI using XRC (instead of Python). I know it&#x27;s not exactly &#x27;dynamic&#x27;, but it&#x27;s pretty close.<p>First I build my whole GUI project with all the widgets in wxFormBuilder, and export the project as XRC (xml representation of the GUI widgets and hierarchy).<p>Then My wxAPP (Pyhton or C++) loads the XRC and builds every widget contained contained within my project. This is done by a simple call to &#x27;xrc.XmlResource(&#x27;mygui.xrc&#x27;)&#x27;<p>This makes it super easy to maintain and test my GUI changes, without having to sift through a bunch of &#x27;AddSizer...&#x27; GUI specific code. Building a GUI in code and maintaining it adds quite a cost and becomes quite tedious quickly.<p>wxFormBuilder does tend to crash once in a while, but otherwise allows for a fairly smooth GUI building experience, while decoupling your App code from your GUI &#x27;scaffolding&#x27; concerns.
ekvintrojover 8 years ago
Each day more close to smalltalk ;)
评论 #13676558 未加载
评论 #13676591 未加载
carapaceover 8 years ago
&quot;idle -n&quot; !?<p>(In case I am being too obscure: Run idle in &quot;no subprocess&quot; mode and then any TKinter widgets your script creates partake of the IDLE editor&#x27;s Tk mainloop. You get instant dynamic GUI. Awesome for RAD.)<p>;-D
评论 #13678716 未加载
7ewisover 8 years ago
I&#x27;ve been meaning to learn how to automate websites using Python, this seems like a quick way to get started!
MattRixover 8 years ago
Any chance of a video demo of this?
评论 #13677177 未加载
squarefootover 8 years ago
The name is a bit misleading as it recalls Tekui which is a (very nice IMO) LUA GUI extension. <a href="http:&#x2F;&#x2F;tekui.neoscientists.org&#x2F;screenshots.html" rel="nofollow">http:&#x2F;&#x2F;tekui.neoscientists.org&#x2F;screenshots.html</a>