/ Hathaway Weblog / XUL + Python

Shane :: Python :: July 14, 2004 # XUL + Python

XUL, invented in the Mozilla project, is a relatively new way to build graphical user interfaces. It's gaining popularity, but I haven't been too excited about it because in Mozilla, it's tightly bound with JavaScript. JavaScript is OK, but Python is a lot more mature. I was encouraged to see that others agree: an informal poll suggests that the majority (53%) of XUL users want Python or Jython bindings. JavaScript came in 2nd place with only 12% of the votes.

One of these days I'm going to give a serious look at PyXPCOM. It's probably the best way to integrate Python and XUL.

Comments

Dario (November 17, 2004 14:20)

Does anyone know a way to import XUL librarys from mozilla in python?

What did Komodo do? I did not understand how did they use Mozilla's XUL engine without requiring mozilla to be installed.

here the link: http://aspn.activestate.com/ASPN/Mozilla

Also, it seems that this guy is with us: http://www.mozilla.org/docs/xul/xulnotes/xulnote_oven.html

Jim Hargrave (February 22, 2005 09:53)

Hi,

From what I've read PyXPCOM is a bear to compile with the latest versions of Mozilla (I wouldn't even try Firefox). If you ever get a build with Mozilla 1.7.5 please let us know. We are considering using "Open Office + Mozilla + Python" as a platform for use in the translation department here at the LDS Church Office Building.

On another front wxMozilla is still alive and they will have new wxPython bindings soon. I think they are waiting for the next release of wxWidgets before they release. wxMozilla should work with Python 2.4 and latest wxPython. Also should be easier to set up (distutils).

It would be killer to have PyXPCOM as part of this package! You could then develop XUL apps with HTML/XML/CSS and Python. Also have full access to wxWidgets via wxPython! I wonder how hard it would be to then wrap any wxWidget and expose it to XUL via XPCOM?

Sidnei da Silva (October 13, 2005 08:06)

Shane Hathaway (October 14, 2005 01:04)

Cool, thanks for the link, Sidnei. And I've also noticed that my PyXPCOM unicode patch has been integrated into a mega-patch that's floating around. All indications are that progress is coming soon!

One thing about that article: it contains a possible inference that the Python community is not "web-standards-savvy". That's a strange thing to say! I'd say the Python community is actually quite good at HTTP, HTML, XML, CSS, DOM, RDF, and many more acronyms. It would be more accurate to say that the Python community is not very "mozilla-C++-savvy". In my attempt to write XUL, I couldn't get by without searching and studying the C++ code. More language bindings should improve that.

No further comments may be added.

Click below to fill in the scripture reference.
Your browser is not able to display the scripture fill-in program. To see it, enable Javascript or use Mozilla 1.0 or better.
And now, I, Moroni, would speak somewhat concerning these things; I would show unto the world that faith is things which are hoped for and not seen; wherefore, dispute not because ye see not, for ye receive no witness until after the trial of your faith.

Church: lds scriptures provident games pearls kzion shiblon film chancellor gateway cumorah byutv happiness nephi
Zope: freezope org com zen labs newbies zettai warnes
Python: home pyzine daily icanprogram
Genealogy: cyndi
Weblogs: jeffrey paul jon joel another-shane guido barry jeremy windley chrism zac
News: quakes lwn dc weather deseret zeitgeist softwarelivre
Zaurus: software developer
Tech: tango spintronics thin
Semantic: aaron sean
Reference: css rdf html4 javascript geckodom iecss emacs phrases acronyms
Reverse: advogato slashdot
Misc: gimp-savvy directory soda jokes shouldexist pdphoto