Home
Categories
Dictionary
Glossary
Download
Project Details
Changes Log
What Links Here
FAQ
License

XUL Python scripts



Python scripts in XUL files use the Python scripting language.

Implementation

Python scripts are implemented with the Jython library. The Jython library currently implement the Python 2.7.18 version. Note that this library does not allow to install external Python modules.

MIME types

The MIME types supported for Python scripts are:
  • "text/python"
  • "application/python"
  • "application/x-python"

Import declarations

Python import declarations use the from <package> import >class>. For example:
      from java.util import List
      
      def computeSize(self, list):
        return list.size()

See also


Categories: builtin-applis

Copyright 2017-2020 Dassault Aviation. All Rights Reserved. Documentation and source under the LGPL v3 licence