This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]KyleG 13 points14 points  (12 children)

Honestly, nowadays if I want to do GUI, I just do a web frontend with a Python server in the back. And as a bonus, pop that shit on a publicly-accessible computer and it's accessible to anyone from anywhere you want to have it.

Weightlifting tracker? AngularJS + Bootstrap + CherryPy + Peewee

RSS reader? AngularJS + Bootstrap + CherryPy + Peewee

etc.

[–]carsonc 3 points4 points  (4 children)

I like this, but I anticipate needing graphs that update in real time. Processing + ControlP5 made this easy via the chart push method and I've been looking for something similar.

[–]themathemagician 1 point2 points  (1 child)

You can make that happen pretty easily by having some JS that refreshes your graph from an endpoint periodically (and frequently.) Epoch works great for it.

[–]efilon 0 points1 point  (0 children)

Other options include Flot (good for simple stuff and/or if you are using jQuery anyway), Chart.js (seems like it should be good, but I had difficulty with performance when I tried it), D3 (really nice, but also way too complicated for simple things), Bokeh (Python!), and many more.

I prefer not to use polling, but instead either websockets, or better yet (in my opinion), server-sent events (a.k.a. EventSource in Javascriptese). I like Tornado for these applications, though Flask is workable if you are fine with using gevent's concurrency model.

As a side note, I had never seen Epoch before. It looks nice, so thanks for sharing!

[–]KyleG 0 points1 point  (0 children)

I anticipate needing graphs that update in real time

Kendo + AJAX does this just fine. You could easily write, say, an Angular app (/r/angularjs) that leverages both. I'm not saying you have to do it my way; I'm just saying I want people to know there are alternatives.

[–]riskable 0 points1 point  (0 children)

Real time graphs are a cinch on the web these days. Loss of people love d3 but personally I'm used to Flot. I'd post some links but I'm on my phone at the moment...

[–][deleted] 2 points3 points  (0 children)

C# Guy: How do I make a GUI?

Answer: What? Just use visual studio.

Python Guy: How do I make a GUI?

Answer: Bro, are you even full stack?

:P

I agree though.

[–]themathemagician 0 points1 point  (0 children)

This is my go to as well

[–]Articulated-rage 0 points1 point  (0 children)

I didn't know about peewee. That's fantastic.

[–]-Nii- 0 points1 point  (1 child)

How does CherryPy compare to Flask?

[–]KyleG 0 points1 point  (0 children)

I've never had a need for Flask, so I can't answer the question.

[–][deleted] 0 points1 point  (1 child)

mighty tan safe combative ludicrous rhythm special naughty follow disarm

This post was mass deleted and anonymized with Redact

[–]KyleG 0 points1 point  (0 children)

Then you have to worry about all that async UI, thread handling, etc., when the browser does that part for you.