This file has been truncated. show original
# The Slate API
Slate is the GUI toolkit in Unreal Engine 4. It allows you to create windows, buttons, sliders and all of the graphics elements you see in the editor. It is the base for the Blueprint Widgets too.
UnrealEnginePython allows you to build GUI from python using the Slate api.
The python wrapper development has been sponsored by Kite & Lightning (http://kiteandlightning.la/)
This document assumes a python3 environment. If you are using python2, just ensure to use unicode when you see strings.
It is a 'Work In Progress' and its objective is to give the user enough basis to start building its tools. Only a meaningful subset of the available widgets is explained here, pull requests for extending this page are really welcomed.
## SWidget and ue_PySWidget
SWidget is the base C++ class for all the Slate widgets, it is wrapped in a python object (PyObject) named ue_PySWidget.
Each SWidget exposed to python has its ue_PySWidget representation. You can get the list of exposed SWidget from here: https://github.com/20tab/UnrealEnginePython/tree/master/Source/UnrealEnginePython/Private/Slate (the ones stating with 'UEPyS' prefix)