File structure¶
The pyp file has a XML file structure and can be edited by tools like Visual Studio Code, Visual Studio, Notepad++, …
The general file structure looks as follows:
<?xml version =”1.0” encoding =”utf-8”?>
<Element>
<LanguageFile>AllControls</LanguageFile>
<Script>
…
</Script>
<Page>
…
</Page>
<Page>
…
</Page>
…
<Element>
The <LanguageFile> tag (optional) defines the name and the location of the language file for the localization of the PythonPart. This allows to use one language file for multiple PythonParts.
The script node is used to define the general data of the PythonPart. In the <Page> nodes the general page data and the parameters of the PythonPart are defined.