Skip to content

Commit 605d1ce

Browse files
author
Roberto De Ioris
authored
Update Slate_API.md
1 parent b9ac90e commit 605d1ce

File tree

1 file changed

+11
-1
lines changed

1 file changed

+11
-1
lines changed

docs/Slate_API.md

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -495,6 +495,16 @@ window = SWindow(client_size=(512, 256), title='Slate Window')(
495495

496496
![SButton](https://github.com/20tab/UnrealEnginePython/raw/master/docs/screenshots/slate_SButton.png)
497497

498-
## SEditableTextBox
498+
Note that technically SButton's are containers so you can assign to them another widget:
499+
500+
```python
501+
SButton(on_clicked=lambda: window.request_destroy())(STextBlock(text='Hello'))
502+
```
503+
504+
More infos here: https://api.unrealengine.com/INT/API/Runtime/Slate/Widgets/Input/SButton/index.html
499505

500506
## SImage
507+
508+
## SEditableTextBox
509+
510+

0 commit comments

Comments
 (0)