Defines a list of imports. Aliases can also be defined the imports using < name of aliases alias, ... >
Defines the GUI. Each GUI Element is defined by the Element name followed by a id and then its parameters parameters are denotoed by the @ symbol and its value is followed by '. For more complex parameter values python dictionaries are used.
This defines the functionality of the script. Functions are defined using function keyword followed by the name. List of parameters in () brackets and ended with ':'. Control blocks are ended with the ~ character. GUI elements can be referenced by the $ character. Either by using the number it appears in the file. Eg to use the first GUI element in the file use $1 or by its id name. Eg $my_window. Sometimes while parsing the file Phino isn't sure what a variable is. To get round this Phino introduces the ? operator. The ? operator tells Phino that at the point it occurs it is expecting the variable mentioned to be a certain type. Therefore for all subsequent operations on the variable will be on that type until notified otherwise. It does not guarantee that when run it can be something different however. To use the operator you specify the variable name followed by ? and then an object its expected to be. Eg if we had a variable called x which was expected to be an int. You would write x ? int.
This defines event bindings for the script.