how to get EasyGUI to work with webpy?

148 views
Skip to first unread message

puccap

unread,
Dec 13, 2012, 7:22:57 PM12/13/12
to we...@googlegroups.com
I am trying to do a basic pop-up dialog in web.py and thought easygui would be the solution.  But my app hangs and the pop-up dialog is half rendered, sample code below.  Any insight is appreciated.

import web
import easygui as eg

urls = ("/.*", "hello")
app = web.application(urls, globals())

class hello:
    def GET(self):
        eg.msgbox("hello")
        return 'Hello, world!'

if __name__ == "__main__":
    app.run()

Shannon Cruey

unread,
Dec 14, 2012, 9:13:18 AM12/14/12
to we...@googlegroups.com
I didn't try any examples, but looking at the easygui site it's pretty clearly a tool for building traditional gui applications in python, and not for doing web applications with tools like web.py.

At a glance without digging deeper I'd guess that to the the problem.  I'm surprised you see any results at all.

I've never used it, but just yesterday came across jeasyui.com... a toolkit built on jQuery for making a quick and dirty web application.  It looks pretty cool, of course it's based on jQuery which has singlehandedly changed web development in the past few years.

Hope this helps!
S



--
You received this message because you are subscribed to the Google Groups "web.py" group.
To view this discussion on the web visit https://groups.google.com/d/msg/webpy/-/0ChgtH6NjZQJ.
To post to this group, send email to we...@googlegroups.com.
To unsubscribe from this group, send email to webpy+un...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/webpy?hl=en.

Alec Taylor

unread,
Dec 14, 2012, 9:16:45 AM12/14/12
to we...@googlegroups.com
That is a GUI framework for the desktop. You want a GUI framework,
library or widget set for the web.

Here's what I use (it's free + open-source + developed at Twitter):
http://twitter.github.com/bootstrap/
Reply all
Reply to author
Forward
0 new messages