JQuery is very popular
I'm still looking / working with Zebra
--
You received this message because you are subscribed to the Google Groups "brython" group.
To unsubscribe from this group and stop receiving emails from it, send an email to brython+u...@googlegroups.com.
To post to this group, send email to bry...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/brython/CALFJTa21a3SvtLFn68L8C5CkLPnahu7%3DuV24-OeomZ0HKfy0wA%40mail.gmail.com.
--
You received this message because you are subscribed to the Google Groups "brython" group.
To unsubscribe from this group and stop receiving emails from it, send an email to brython+u...@googlegroups.com.
To post to this group, send email to bry...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/brython/CAGMZAuNp-J7oN34EprFsG%2B5ocGFUPK%3DANod53ZAgQ8RBTfdaoQ%40mail.gmail.com.
we should host the libraries somewhere and allow loading via CORS. If someone is against this, then they can download the library and place it in their own site-packages directory.On Wed, Jan 14, 2015 at 9:47 AM, Olemis Lang <ole...@gmail.com> wrote:On 1/14/15, Joao S. O. Bueno <gwi...@gmail.com> wrote:
> One thing to think about is how far is it worth to put every
> javascript library out there together with Brython - or when should
> a basic "packaging" system be implemented. (SInce there are just about
> a few projects now, maybe just offering them in
> .py/zipped files for now would suffice).
>
Yes , I agree with this . IMO these kinds of additions should be
developed in a different repos and either copied to the right
location at deployment time (e.g. via deployment scripts , git
submodules , ...) or loaded asynchronously (should we offer support
for that) .
Needless to say that integration brython with mature js frameworks is
an important milestone .
[...]
--
Regards,
Olemis - @olemislc
Apache(tm) Bloodhound contributor
http://issues.apache.org/bloodhound
http://blood-hound.net
Blog ES: http://simelo-es.blogspot.com/
Blog EN: http://simelo-en.blogspot.com/
Featured article:
--
You received this message because you are subscribed to the Google Groups "brython" group.
To unsubscribe from this group and stop receiving emails from it, send an email to brython+unsubscribe@googlegroups.com.
To post to this group, send email to bry...@googlegroups.com.
To unsubscribe from this group and stop receiving emails from it, send an email to brython+u...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/brython/60cb392c-15f9-48c7-adef-dc54419e6252%40googlegroups.com.
Le mercredi 14 janvier 2015 17:01:45 UTC+1, Billy Earney a écrit :we should host the libraries somewhere and allow loading via CORS.
If someone is against this, then they can download the library and place it in their own site-packages directory.On Wed, Jan 14, 2015 at 9:47 AM, Olemis Lang <ole...@gmail.com> wrote:On 1/14/15, Joao S. O. Bueno <gwi...@gmail.com> wrote:
> One thing to think about is how far is it worth to put every
> javascript library out there together with Brython - or when should
> a basic "packaging" system be implemented. (SInce there are just about
> a few projects now, maybe just offering them in
> .py/zipped files for now would suffice).
>
There are 2 levels of integration of Javascript libraries :
- one which should work with all existing libraries : load it in the HTML page with one or more <script> tags, plus the CSS files if needed, then use the objects exposed using attributes of "window". This is how the demos of d3.js, Highcharts and Raphael in the gallery are implemented, and how ace.js is used in the editor. It doesn't require any specific Python module or package ; the syntax is the same as the one provided by the Javascript library, with the necessary adaptation to Python syntax and types.
- another one, which is only implemented for jQuery UI at the moment, where a Python package is provided to avoid having to load the Javascript/CSS files in the HTML page, and with a more Pythonic interface to the library.
Billy, I don't understand what you mean with "loading with CORS" : how is this related to importing a module/package ?
In the second example above, I assume that 'from jqueryui import js' would build the script tag to import jquery and jquery ui?if you plan on providing the jquery ui witth the brython distribution then CORS doesn't apply.as you know CORS allows you to load files from remote/external web servers
billy
I think this is a good idea. JQuery is very popular, and many people will want to use it.
I'm still looking / working with Zebra, and I really like the interface. I've been quiet on it, as we're still learning/testing it, but it's so far only giving us pluses - It's all in HTML5 canvas, so portability problems are nearly 0 as long as a browser supports HTML5. It also provides the primitives that I need to finish a Tkinter port, tho that is not a hot item for me.
If we go with Zebra, I'll post my wrapper for Brython for it.
In the meantime, any UI code ported to Brython will be very useful.
On Wednesday, 14 January 2015 05:45:12 UTC-4, Pierre Quentel wrote:Hi,
Following the interesting discussion initiated by Christopher on a UI module for Brython, I think that the best short term solution is to provide a package that uses one of the popular Javascript libraries, just like CPython provides an interface with Tcl/Tk.
--
You received this message because you are subscribed to the Google Groups "brython" group.
To unsubscribe from this group and stop receiving emails from it, send an email to brython+u...@googlegroups.com.
To post to this group, send email to bry...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/brython/04c287d0-207c-40da-a820-d8e4e197cfba%40googlegroups.com.
I am waiting for your feedback on this : is jQuery UI a good choice ?
Of course, you can use Bootstrap, as well as other ui frameworks. What I am saying is that, in my opinion, Bootstrap would be a better choice for being the official GUI library of brython by providing a pythonic (or, better, brythonic) interface to it, in the same way tk is an integral part of cpython.
I see Bootstrap more like a set of CSS file than a UI framework, but maybe I'm wrong. Anyway, I am ok to consider adding it to the standard Brython distribution instead of jQuery UI if there is a consensus, but I won't write the module myself : supporters of other solutions must provide a working implementation (the code of jqueryui can help) with a decent set of examples
--
You received this message because you are subscribed to the Google Groups "brython" group.
To unsubscribe from this group and stop receiving emails from it, send an email to brython+u...@googlegroups.com.
To post to this group, send email to bry...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/brython/CALFJTa3Opmhy5SBy5VntxSLg%3DMt1V%2BSKYzbkr0LDVGbg0etWrQ%40mail.gmail.com.
--
You received this message because you are subscribed to the Google Groups "brython" group.
To unsubscribe from this group and stop receiving emails from it, send an email to brython+u...@googlegroups.com.
To post to this group, send email to bry...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/brython/9a0abf02-7437-4caf-81cb-3de7e7f8f531%40googlegroups.com.
Can Jquery also be accessed in the pythonic way or only JqueryUI?
--
You received this message because you are subscribed to the Google Groups "brython" group.
To unsubscribe from this group and stop receiving emails from it, send an email to brython+u...@googlegroups.com.
To post to this group, send email to bry...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/brython/14fccfbc-c230-4901-b9f6-ad8e209586b8%40googlegroups.com.