> Date: Wed, 23 Jan 2013 13:32:44 +0100 > From: Wim Dumon <w...@emweb.be> > Subject: Re: [Wt-interest] Wt and Python > > Would be great if we could finish it.
Why not release it in the wild and let the community take a peak at it? Though I am not a Python developer, I am sure there will be lots of other developers interested in this project. Take a look at the way MongoDB gets different language drivers (http://www.mongodb.org/display/DOCS/Drivers) from community. EmWeb has already started a project but is stalled because of overload, then it makes sense to see if anyone from the wider world is interested in contributing. Just my 2 cents. ~Plug > It started before clang existed, but > I'd like to take a look at clang to see if we can write a plugin to extract > the information we need from Wt's header files. From there on, the python > binding generation scripts that we wrote back then may still be usable on > the current Wt version. This is unfortunately not done overnight... > > BR, > Wim. > > > 2013/1/23 epi <massimodisa...@gmail.com> > >> This is kind of cool! >> >> is the project still alive, any interest in resurrect it ? >> >> thanks! >> >> Massimo. >> >> Il giorno 22/gen/2013, alle ore 12:09, Wim Dumon <w...@emweb.be> ha >> scritto: >> >> We did some work to make PyWt in the past. It was never completely >> finished (too busy...), but quite a fun project with good results. >> >> BR, >> Wim. >> >> import sys >> import Wt >> import WtHttp >> >> class MyApplication(Wt.WApplication): >> def __init__(self, env): >> Wt.WApplication.__init__(self, env) >> self.setTitle("Hello") >> >> Wt.WText("Your name please? ", Wt.XHTMLText, self.root()) >> >> self.nameedit = Wt.WLineEdit("", self.root()) >> self.nameedit.setFocus() >> >> button = Wt.WPushButton("Greet me!", self.root()) >> button2 = Wt.WPushButton("Quit", self.root()) >> >> Wt.WBreak(self.root()) >> >> self.greeting = Wt.WText("", Wt.XHTMLText, self.root()) >> button.clicked().connect(self.greet) >> >> self.nameedit.enterPressed().connect(self.greet) >> >> button2.clicked().connect(self.quit) >> >> >> def greet(self): >> self.greeting.setText("Hello there, " + >> self.nameedit.text()) >> >> >> def createApplication(env): >> return MyApplication(env) >> >> >> if __name__ == "__main__": >> import WtHttp >> WtHttp.WRun(sys.argv, createApplication) >> >> >> >> 2013/1/22 Nagaev Boris <bnag...@gmail.com> >> >>> Hi, >>> >>> Hello world in Python (Jython): >>> >>> http://www.nan-tic.com/en/2011/from-pyqt-to-jythonjwt-setting-up-the-environment/ >>> >>> I think, Python is promising to interact with database. Django ORM, >>> for example, is convenient. One of advantages is that no SQL is >>> hardcoded and introspection is more featured. Boost.python can be used >>> to bind it to C++. >>> >>> I do not know good web-servers in python except tornado. I think >>> built-in Wt http server should be used. >>> >>> Python bindings to Wt (like PyQt for Qt) would be convenient for >>> people writing in Python. Several programmers I know do not use Wt >>> only because it is C++ and they prefer Python. >>> >>> GIL problem can be solved by multiprocessing. >>> >>> Taking better parts of Django and Wt is a good idea. >>> >>> On Tue, Jan 22, 2013 at 4:56 PM, Rashad M <mohammedrasha...@gmail.com> >>> wrote: >>> > Hi All, >>> > >>> > Why Wt not in python? Python has web server and all. If java why not in >>> > Python >>> > >>> > -- >>> > Regards, >>> > Rashad >>> > >>> > ------------------------------------------------------------------------------ Master Visual Studio, SharePoint, SQL, ASP.NET, C# 2012, HTML5, CSS, MVC, Windows 8 Apps, JavaScript and much more. Keep your skills current with LearnDevNow - 3,200 step-by-step video tutorials by Microsoft MVPs and experts. ON SALE this month only -- learn more at: http://p.sf.net/sfu/learnnow-d2d _______________________________________________ witty-interest mailing list witty-interest@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/witty-interest