VOOZH about

URL: https://www.geeksforgeeks.org/python/wxpython-create-function-in-wx-statictext/

⇱ wxPython - Create() function in wx.StaticText - GeeksforGeeks


  • Courses
  • Tutorials
  • Interview Prep

wxPython - Create() function in wx.StaticText

Last Updated : 1 Mar, 2023

In this article we are going to learn about Create() associated with wx.StaticText class of wxPython. A static text control displays one or more lines of read-only text. Create() function is used for two step creation of static text. It takes attributes of statictext as arguments.

Syntax: wx.StaticText.Create(parent, id=ID_ANY, label="", pos=DefaultPosition, size=DefaultSize, style=0, name=StaticTextNameStr) Parameters:

ParameterInput TypeDescription
parentwx.WindowParent window. Should not be None.
idwx.WindowParent window. Should not be None.
parentwx.WindowIDControl identifier. A value of -1 denotes a default value.
labelstringText label.
poswx.PointWindow position.
sizewx.SizeWindow size.
stylelongWindow style.
namestringWindow name.

Return Type: bool

Code Example: 

Output Window: 👁 Image

Comment