VOOZH about

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

⇱ wxPython - StaticText() constructor in wx.StaticText - GeeksforGeeks


  • Courses
  • Tutorials
  • Interview Prep

wxPython - StaticText() constructor in wx.StaticText

Last Updated : 18 Jun, 2020
In this article we are going to learn about StaticText() associated with wx.StaticText class of wxPython. A static text control displays one or more lines of read-only text. wx.StaticText supports the three classic text alignments, label elliptization i.e. replacing parts of the text with the ellipsis (β€œβ€¦β€) if the label doesn’t fit into the provided space and also formatting markup with wx.Control.SetLabelMarkup .
Syntax: wx.StaticText.StaticText(parent, id=ID_ANY, label="", pos=DefaultPosition, size=DefaultSize, style=0, name=StaticTextNameStr) Parameters:
Parameter Input Type Description
parent wx.Window Parent window. Should not be None.
id wx.Window Parent window. Should not be None.
parent wx.WindowID Control identifier. A value of -1 denotes a default value.
label string Text label.
pos wx.Point Window position.
size wx.Size Window size.
style long Window style.
name string Window name.
Code Example: Output Window: πŸ‘ Image
Comment