Has anyone made any progress with this? I had a conversation with someone on irc.freenode #kivy . it seems like it could be possible to do. but maybe out of the scope of web2py? :
*<luckysmack> * would kivy work with something like web2py, which has dynamic module loading? *<luckysmack> * or would that break it? or does it even matter? <+*tito*> luckysmack: you can run web2py in a thread, and then, it's seperated <*luckysmack*> tito: can you elaborate on doing that some? <+*tito*> luckysmack: check the webdebugger module, i'm doing it :) <+*tito*> it's just, web2py have its own event loop, kivy too. <+*tito*> if you run in the same thread, who is the 'master' and controling the other ? etc. <+*tito*> with thread seperation, web2py can access to kivy with the kivy.clock (never touch to widget from another thread) <+*tito*> https://github.com/kivy/kivy/blob/master/kivy/modules/webdebugger.py <*luckysmack*> ok, so they would run separate, and just talk to eachother? so web2py would just talk to kivy's thread over kivy.clock to build the gui? sorry but im new to kivy as well. so i dont know it well yet. <+*tito*> that's right, you got it :) <*luckysmack*> ok looking <*luckysmack*> so would all the views, be pulled from kivy? or would you use kivy to render the view from web2py? <+*tito*> uh, i don't know what you really want with web2py, and i don't know the framework <+*tito*> so dunno about the view <*luckysmack*> the views are just the html templates that get shown to a user on the web. <+*tito*> and so, what's the matter with kivy? <*luckysmack*> im just curious where the separation would be, with the standard html templates, and using kivy. would i just have something like a web view, and say a mobile view? where the movie ones would use kivy? <+*tito*> ooh ok. we don't have crossplatform webview. <+*tito*> so you can't do that with kivy. <+*tito*> webkit port into kivy is not easy, and we did it only for linux right now, with kivy-berkelium <+*tito*> but that's all. <*luckysmack*> yes. i would assume those to be separate. if on the web, i would simply use the html templates and not touch kivy. but when bundled on the phone for example, i wouldnt bundle the html views, but the kivy stuff. im just not sure how i would attack that. <+*tito*> you're the first one to attack the problem on this manner :) <+*tito*> i guess you could have the same 'controller / model' base, and have different app with different view? <+*tito*> or, you could give me money to continue kivy->html5 :) <+*tito*> as i wrote few weeks ago on twitter: https://twitter.com/mathieuvirbel/status/227809079823847424 On Sunday, January 8, 2012 6:08:09 PM UTC-8, rochacbruno wrote: > > Look this project > > https://github.com/kivy/python-for-android > > May be someone has time to spend trying to run web2py with this. > > > -- > > Bruno Rocha > [http://rochacbruno.com.br] > > --