In this article we are going to learn about SetLabel() function associated with wx.StaticText class of wxPython. SetLabel() function is used to set the string label for the Static Text.
It takes a string parameter that is used as label for Static Text.
Syntax: wx.StaticText.SetLabel(self, label)
Parameters:
| Parameter |
Input Type |
Description |
| label |
string |
The label to set. |
Code Example:
Output Window:
👁 Image