XUL behavior in Python via XPCOM, Mozilla

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Terry Hancock

    #1

    XUL behavior in Python via XPCOM, Mozilla

    I recently saw a claim that Mozilla XUL behaviors (normally
    scripted in Javascript) can (or perhaps will) be scriptable
    in Python.

    Also, "other languages such as Java or Python are supported
    through XPCOM", said about Mozilla (from Luxor website).

    Yes, I know several ways to *generate* XUL from Python, and
    at least one way to use XUL to create interfaces for Python
    programs, but in this case, I'm talking about defining
    button action behavior in XUL by calling Python scripts.

    I know that Javascript is the preferred language, but I've
    seen several references to being able to do this in Python,
    including a claim that a release was targeted for early
    November (2005), to provide this.

    Now I can't find it again. Anyway, I was hoping someone
    on c.l.p / python.org would have a reliable reference on
    this.

    Thanks,
    Terry

    --
    Terry Hancock (hancock@Anansi Spaceworks.com)
    Anansi Spaceworks http://www.AnansiSpaceworks.com

  • Devan L

    #2
    Re: XUL behavior in Python via XPCOM, Mozilla

    Terry Hancock wrote:[color=blue]
    > I recently saw a claim that Mozilla XUL behaviors (normally
    > scripted in Javascript) can (or perhaps will) be scriptable
    > in Python.
    >
    > Also, "other languages such as Java or Python are supported
    > through XPCOM", said about Mozilla (from Luxor website).
    >
    > Yes, I know several ways to *generate* XUL from Python, and
    > at least one way to use XUL to create interfaces for Python
    > programs, but in this case, I'm talking about defining
    > button action behavior in XUL by calling Python scripts.
    >
    > I know that Javascript is the preferred language, but I've
    > seen several references to being able to do this in Python,
    > including a claim that a release was targeted for early
    > November (2005), to provide this.
    >
    > Now I can't find it again. Anyway, I was hoping someone
    > on c.l.p / python.org would have a reliable reference on
    > this.
    >
    > Thanks,
    > Terry
    >
    > --
    > Terry Hancock (hancock@Anansi Spaceworks.com)
    > Anansi Spaceworks http://www.AnansiSpaceworks.com[/color]

    Nufox?


    Comment

    • Terry Hancock

      #3
      Re: XUL behavior in Python via XPCOM, Mozilla

      On 12 Nov 2005 12:47:58 -0800
      "Devan L" <devlai@gmail.c om> wrote:[color=blue]
      > Nufox?
      > http://trac.nunatak.com.au/projects/nufox[/color]
      Nufox is a server-side tool to *generate* XUL from Python.

      Luxor
      Luxor is a free, open-source XML User Interface Language (XUL) toolkit in Java that includes a ultra light-weight, multi-threaded web server, a portal engine and a template engine.

      is a XUL-interpreter written in Python, which
      therefore *replaces* Mozilla for XUL-based GUI applications.
      It scripts in Python or Java by default.

      But then there's the announcement at

      by Brenden Eich that will use the PyXPCOM work by Mark
      Hammond to put python scripting capability into the Mozilla
      XUL engine, so that you can use
      script="applica tion/x-python" in order to do behavior
      scripting in Python from within XUL running on top of
      Mozilla.

      I was also a little foggy about the relationship between
      these components (which I hope I've just spelled out for the
      record).

      Thanks for the replies,
      Terry

      --
      Terry Hancock (hancock@Anansi Spaceworks.com)
      Anansi Spaceworks http://www.AnansiSpaceworks.com

      Comment

      Working...