wx._controls.TextCtrl
Proxy of C++ TextCtrl class
Inherits: wx._core.Control

AppendText(args, kwargs)
AppendText(self, String text)

CanCopy(args, kwargs)
CanCopy(self) -> bool

CanCut(args, kwargs)
CanCut(self) -> bool

CanPaste(args, kwargs)
CanPaste(self) -> bool

CanRedo(args, kwargs)
CanRedo(self) -> bool

CanUndo(args, kwargs)
CanUndo(self) -> bool

Clear(args, kwargs)
Clear(self)

Copy(args, kwargs)
Copy(self)

Create(args, kwargs)
Create(self, Window parent, int id=-1, String value=EmptyString, Point pos=DefaultPosition, Size size=DefaultSize, long style=0, Validator validator=DefaultValidator, String name=TextCtrlNameStr) -> bool

Cut(args, kwargs)
Cut(self)

DiscardEdits(args, kwargs)
DiscardEdits(self)

EmulateKeyPress(args, kwargs)
EmulateKeyPress(self, KeyEvent event) -> bool

GetClassDefaultAttributes
GetClassDefaultAttributes(int variant=WINDOW_VARIANT_NORMAL) -> VisualAttributes Get the default attributes for this class. This is useful if you want to use the same font or colour in your own control as in a standard control -- which is a much better idea than hard coding specific colours or fonts which might look completely out of place on the user's system, especially if it uses themes. The variant parameter is only relevant under Mac currently and is ignore under other platforms. Under Mac, it will change the size of the returned font. See `wx.Window.SetWindowVariant` for more about this.

GetDefaultStyle(args, kwargs)
GetDefaultStyle(self) -> TextAttr

GetInsertionPoint(args, kwargs)
GetInsertionPoint(self) -> long

GetLastPosition(args, kwargs)
GetLastPosition(self) -> long

GetLineLength(args, kwargs)
GetLineLength(self, long lineNo) -> int

GetLineText(args, kwargs)
GetLineText(self, long lineNo) -> String

GetNumberOfLines(args, kwargs)
GetNumberOfLines(self) -> int

GetRange(args, kwargs)
GetRange(self, long from, long to) -> String

GetSelection(args, kwargs)
GetSelection() -> (from, to) If the return values from and to are the same, there is no selection.

GetString(args, kwargs)
GetString(self, long from, long to) -> String

GetStringSelection(args, kwargs)
GetStringSelection(self) -> String

GetStyle(args, kwargs)
GetStyle(self, long position, TextAttr style) -> bool

GetValue(args, kwargs)
GetValue(self) -> String

HideNativeCaret(args, kwargs)
HideNativeCaret(self) -> bool

HitTest(args, kwargs)
HitTest(Point pt) -> (result, col, row) Find the row, col coresponding to the character at the point given in pixels. NB: pt is in device coords but is not adjusted for the client area origin nor scrolling.

HitTestPos(args, kwargs)
HitTestPos(Point pt) -> (result, position) Find the character position in the text coresponding to the point given in pixels. NB: pt is in device coords but is not adjusted for the client area origin nor scrolling.

IsEditable(args, kwargs)
IsEditable(self) -> bool

IsModified(args, kwargs)
IsModified(self) -> bool

IsMultiLine(args, kwargs)
IsMultiLine(self) -> bool

IsSingleLine(args, kwargs)
IsSingleLine(self) -> bool

LoadFile(args, kwargs)
LoadFile(self, String file) -> bool

MarkDirty(args, kwargs)
MarkDirty(self)

Paste(args, kwargs)
Paste(self)

PositionToXY(args, kwargs)
PositionToXY(long pos) -> (x, y)

Redo(args, kwargs)
Redo(self)

Remove(args, kwargs)
Remove(self, long from, long to)

Replace(args, kwargs)
Replace(self, long from, long to, String value)

SaveFile(args, kwargs)
SaveFile(self, String file=EmptyString) -> bool

SelectAll(args, kwargs)
SelectAll(self)

SetDefaultStyle(args, kwargs)
SetDefaultStyle(self, TextAttr style) -> bool

SetEditable(args, kwargs)
SetEditable(self, bool editable)

SetInsertionPoint(args, kwargs)
SetInsertionPoint(self, long pos)

SetInsertionPointEnd(args, kwargs)
SetInsertionPointEnd(self)

SetMaxLength(args, kwargs)
SetMaxLength(self, unsigned long len)

SetSelection(args, kwargs)
SetSelection(self, long from, long to)

SetStyle(args, kwargs)
SetStyle(self, long start, long end, TextAttr style) -> bool

SetValue(args, kwargs)
SetValue(self, String value)

ShowNativeCaret(args, kwargs)
ShowNativeCaret(self, bool show=True) -> bool

ShowPosition(args, kwargs)
ShowPosition(self, long pos)

Undo(args, kwargs)
Undo(self)

WriteText(args, kwargs)
WriteText(self, String text)

XYToPosition(args, kwargs)
XYToPosition(self, long x, long y) -> long

[constructor]
Usage: classname(arguments)

[member '__doc__']
Documentation for this class

[member '__module__']
The module that this class belongs to

[operator 'repr']
Usage: repr(a)

write(args, kwargs)
write(self, String text)