Interface creation

Introduction

Power users have the possibility of creating interfaces to help them produce complex tools for their custom addons, such as macros or full workbenches.

Interfaces are created using PySide, which is a library for using Qt with Python.

Two general methods to create interfaces, by including the interface in the Python file, or by using .ui files.

Description

There are typically two ways of creating interfaces with PySide.

Interface in a .ui file

In this method the interface is defined in a .ui file (an XML document that defines the structure of the interface), which is then imported into Python code that uses it. This is the recommended approach.

Interface completely in Python code

In this method the entire interface is defined by several Python calls.

For examples on this method see Interface creation completely in Python.