Copyright and License information Home

__ A B C D E F G H I L M P R S T U V W

### wxStyledTextCtrl.__init__ & .__repr__

Summary:

The __init__ method is called when the STC object is created. It returns an STC object instance.

The __repr__ method is used when the built-in function repr(stc_object) is used. It returns a string.

wxStyledTextCtrl.__init__(parent,id,pos,size,style,name)

Parameters and their types:

parent = parent window. OBJECT

id = window ID constant. INTEGER. Use -1 for auto-generation, or use wxNewId()

pos = initial position. wxPOINT. Use wxPyDefaultPosition or omit if last kwarg

size = initial size. wxSIZE. Use wxPyDefaultSize or omit if last kwarg

style = ORing of Window styles for the control. Long INTEGER.
Note: wxVSCROLL | wxHSCROLL | wxWANTS_CHARS | wxCLIP_CHILDREN are always added
to whatever styles you pass to the __init__ method.

name = name of the control. STRING. This is not used by most platforms.

Returns the STC instance.

Example:

    from wxPython.stc import *

    class Editor(wxStyledTextCtrl):
    	wxStyledTextCtrl.__init__(self,wxNewId())
    	...

wxStyledTextCtrl.__repr__()

Always returns a String object similar to:

<C wxStyledTextCtrl instance at ########>"

Where ######## is the hexadecimal address (id) of the object instance.