On Sep 6, 3:46 pm, aspineux <[email protected]> wrote: > Pyjamas is a "Python-based Web Application Development Framework". > The Python code of Pyjamas application looks like a PyGTK or PyQT > applications but > use the same widgets as the Google GWT. The code is not run but > compiled into > Javascript. When run in a javascript enable browser, the script build > the widgets using the DOM tree, > and the result looks like any running PyGTK or PyQT applications > > What about the idea of writing complex widgets and/or forms using the > Pyjamas way > using only Pure python code instead of mixing python, html and > javascripts > code using the TG way. > > Looking at the source of the ToscaWidget Calendar components, I get > the files : > > 2955 ./calendars.py > 323 ./templates/calendar.html > 5722 ./static/calendar/calendar-system.css > 34337 ./static/calendar/calendar.js > 4919 ./static/calendar/calendar-setup.js > > for a total of 42534 bytes (I removed the .css) > > Looking at the Pyjamas code > > 324 ./library/pyjamas/ui/Calendar.py > 15452 ./library/gwt/ui/Calendar.py > > for a total of 15776 bytes. > > The Pyjamas code is 3 times smaller and written only in python ! > > Customizing the calendar to highlight legal holiday
here is the end .. Customizing the calendar to highlight legal holiday would requires a lot of hard re-work of the JS inside the Tosca Widget. Instead the change of the Pyjamas code looks a lot more easy. Debugging of TG widgets are not easy. Debugging of Pyjamas widget could be a lot easier if included in an separate process using Pyjamas-Desktop way. This is a lot of work. Maybe Pyjamas widget could be build as normal TG widgets and be mixed with other widgets. Any comment ? -- You received this message because you are subscribed to the Google Groups "TurboGears" group. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/turbogears?hl=en.

