Package gui :: Module controller :: Class LogCtrl
[hide private]
[frames] | no frames]

Class LogCtrl

source code


A special control designed to display relax output messages.

Instance Methods [hide private]
EvtHandler
__init__(self, parent, controller, log_queue=None, id=-1, pos=wx.Point(-1, -1), size=wx.Size(-1, -1), style=134217728, name=u'stcwindow')
Set up the log control.
source code
 
capture_keys(self, event)
Control which key events are active, preventing text insertion and deletion.
source code
 
capture_mouse(self, event)
Control the mouse events.
source code
 
capture_mouse_wheel(self, event)
Control the mouse wheel events.
source code
 
capture_scroll(self, event)
Control the window scrolling events.
source code
 
clear(self)
Remove all text from the log.
source code
 
find(self, event)
Find the text in the log control.
source code
 
find_close(self, event)
Close the find dialog.
source code
 
find_open(self, event)
Display the text finding dialog.
source code
 
find_next(self, event)
Find the next instance of the text.
source code
list of str, list of int
get_text(self)
Concatenate all of the text from the log queue and return it as a string.
source code
 
limit_scrollback(self, prune=20)
Limit scroll back to the maximum number of lines.
source code
 
on_copy(self, event)
Copy the selected text.
source code
 
on_goto_end(self, event)
Move to the end of the text.
source code
 
on_goto_start(self, event)
Move to the start of the text.
source code
 
on_select_all(self, event)
Select all text in the control.
source code
 
on_zoom_in(self, event)
Zoom in by increase the font by 1 point size.
source code
 
on_zoom_orig(self, event)
Zoom to the original zoom level.
source code
 
on_zoom_out(self, event)
Zoom out by decreasing the font by 1 point size.
source code
 
pop_up_menu(self, event)
Override the StyledTextCtrl pop up menu.
source code
 
write(self)
Write the text in the log queue to the log control.
source code

Inherited from wx.stc.StyledTextCtrl: AddRefDocument, AddSelection, AddStyledText, AddText, AddTextRaw, AddTextUTF8, AddUndoAction, Allocate, AnnotationClearAll, AnnotationClearLine, AnnotationGetLines, AnnotationGetStyle, AnnotationGetStyleOffset, AnnotationGetStyles, AnnotationGetText, AnnotationGetVisible, AnnotationSetStyle, AnnotationSetStyleOffset, AnnotationSetStyles, AnnotationSetText, AnnotationSetVisible, AppendTextRaw, AppendTextUTF8, AutoCompActive, AutoCompCancel, AutoCompComplete, AutoCompGetAutoHide, AutoCompGetCancelAtStart, AutoCompGetCaseInsensitiveBehaviour, AutoCompGetChooseSingle, AutoCompGetCurrent, AutoCompGetDropRestOfWord, AutoCompGetIgnoreCase, AutoCompGetMaxHeight, AutoCompGetMaxWidth, AutoCompGetSeparator, AutoCompGetTypeSeparator, AutoCompPosStart, AutoCompSelect, AutoCompSetAutoHide, AutoCompSetCancelAtStart, AutoCompSetCaseInsensitiveBehaviour, AutoCompSetChooseSingle, AutoCompSetDropRestOfWord, AutoCompSetFillUps, AutoCompSetIgnoreCase, AutoCompSetMaxHeight, AutoCompSetMaxWidth, AutoCompSetSeparator, AutoCompSetTypeSeparator, AutoCompShow, AutoCompStops, BackTab, BeginUndoAction, BraceBadLight, BraceBadLightIndicator, BraceHighlight, BraceHighlightIndicator, BraceMatch, CallTipActive, CallTipCancel, CallTipPosAtStart, CallTipSetBackground, CallTipSetForeground, CallTipSetForegroundHighlight, CallTipSetHighlight, CallTipSetPosition, CallTipShow, CallTipUseStyle, Cancel, ChangeLexerState, CharLeft, CharLeftExtend, CharLeftRectExtend, CharPositionFromPoint, CharPositionFromPointClose, CharRight, CharRightExtend, CharRightRectExtend, ChooseCaretX, ClearAll, ClearDocumentStyle, ClearRegisteredImages, ClearSelections, CmdKeyAssign, CmdKeyClear, CmdKeyClearAll, CmdKeyExecute, Colourise, ContractedFoldNext, ConvertEOLs, CopyAllowLine, CopyRange, CopyText, CountCharacters, Create, CreateDocument, CreateLoader, DelLineLeft, DelLineRight, DelWordLeft, DelWordRight, DelWordRightEnd, DeleteBack, DeleteBackNotLine, DeleteRange, DescribeKeyWordSets, DescribeProperty, DoDragOver, DoDropText, DocLineFromVisible, DocumentEnd, DocumentEndExtend, DocumentStart, DocumentStartExtend, EditToggleOvertype, EmptyUndoBuffer, EndUndoAction, EnsureCaretVisible, EnsureVisible, EnsureVisibleEnforcePolicy, FindColumn, FindText, FormFeed, FormatRange, GetAdditionalCaretForeground, GetAdditionalCaretsBlink, GetAdditionalCaretsVisible, GetAdditionalSelAlpha, GetAdditionalSelectionTyping, GetAllLinesVisible, GetAnchor, GetBackSpaceUnIndents, GetBufferedDraw, GetCaretForeground, GetCaretLineBack, GetCaretLineBackAlpha, GetCaretLineBackground, GetCaretLineVisible, GetCaretPeriod, GetCaretSticky, GetCaretStyle, GetCaretWidth, GetCharAt, GetCodePage, GetColumn, GetControlCharSymbol, GetCurLine, GetCurLineRaw, GetCurLineUTF8, GetCurrentLine, GetCurrentPos, GetDocPointer, GetEOLMode, GetEdgeColour, GetEdgeColumn, GetEdgeMode, GetEndAtLastLine, GetEndStyled, GetExtraAscent, GetExtraDescent, GetFirstVisibleLine, GetFoldExpanded, GetFoldLevel, GetFoldParent, GetGapPosition, GetHighlightGuide, GetHotspotActiveBackground, GetHotspotActiveForeground, GetHotspotActiveUnderline, GetHotspotSingleLine, GetIdentifier, GetIndent, GetIndentationGuides, GetIndicatorCurrent, GetIndicatorValue, GetKeysUnicode, GetLastChild, GetLastKeydownProcessed, GetLayoutCache, GetLength, GetLexer, GetLine, GetLineCount, GetLineEndPosition, GetLineIndentPosition, GetLineIndentation, GetLineRaw, GetLineSelEndPosition, GetLineSelStartPosition, GetLineState, GetLineUTF8, GetLineVisible, GetMainSelection, GetMarginCursor, GetMarginLeft, GetMarginMask, GetMarginOptions, GetMarginRight, GetMarginSensitive, GetMarginType, GetMarginWidth, GetMarkerSymbolDefined, GetMaxLineState, GetModEventMask, GetModify, GetMouseDownCaptures, GetMouseDwellTime, GetMultiPaste, GetMultipleSelection, GetOvertype, GetPasteConvertEndings, GetPositionCacheSize, GetPrintColourMode, GetPrintMagnification, GetPrintWrapMode, GetProperty, GetPropertyExpanded, GetPropertyInt, GetPunctuationChars, GetRangePointer, GetReadOnly, GetRectangularSelectionAnchor, GetRectangularSelectionAnchorVirtualSpace, GetRectangularSelectionCaret, GetRectangularSelectionCaretVirtualSpace, GetRectangularSelectionModifier, GetSTCCursor, GetSTCFocus, GetScrollWidth, GetScrollWidthTracking, GetSearchFlags, GetSelAlpha, GetSelEOLFilled, GetSelectedText, GetSelectedTextRaw, GetSelectedTextUTF8, GetSelectionEnd, GetSelectionMode, GetSelectionNAnchor, GetSelectionNAnchorVirtualSpace, GetSelectionNCaret, GetSelectionNCaretVirtualSpace, GetSelectionNEnd, GetSelectionNStart, GetSelectionStart, GetSelections, GetStatus, GetStyleAt, GetStyleBits, GetStyleBitsNeeded, GetStyledText, GetTabIndents, GetTabWidth, GetTag, GetTargetEnd, GetTargetStart, GetTechnology, GetText, GetTextLength, GetTextRange, GetTextRangeRaw, GetTextRangeUTF8, GetTextRaw, GetTextUTF8, GetTwoPhaseDraw, GetUndoCollection, GetUseAntiAliasing, GetUseHorizontalScrollBar, GetUseTabs, GetUseVerticalScrollBar, GetViewEOL, GetViewWhiteSpace, GetVirtualSpaceOptions, GetWhitespaceChars, GetWhitespaceSize, GetWordChars, GetWrapIndentMode, GetWrapMode, GetWrapStartIndent, GetWrapVisualFlags, GetWrapVisualFlagsLocation, GetXOffset, GetZoom, GotoLine, GotoPos, HideLines, HideSelection, Home, HomeDisplay, HomeDisplayExtend, HomeExtend, HomeRectExtend, HomeWrap, HomeWrapExtend, IndicatorAllOnFor, IndicatorClearRange, IndicatorEnd, IndicatorFillRange, IndicatorGetAlpha, IndicatorGetForeground, IndicatorGetOutlineAlpha, IndicatorGetStyle, IndicatorGetUnder, IndicatorSetAlpha, IndicatorSetForeground, IndicatorSetOutlineAlpha, IndicatorSetStyle, IndicatorSetUnder, IndicatorStart, IndicatorValueAt, InsertText, InsertTextRaw, InsertTextUTF8, LineCopy, LineCut, LineDelete, LineDown, LineDownExtend, LineDownRectExtend, LineDuplicate, LineEnd, LineEndDisplay, LineEndDisplayExtend, LineEndExtend, LineEndRectExtend, LineEndWrap, LineEndWrapExtend, LineFromPosition, LineLength, LineScroll, LineScrollDown, LineScrollUp, LineTranspose, LineUp, LineUpExtend, LineUpRectExtend, LinesJoin, LinesOnScreen, LinesSplit, LowerCase, MarginGetStyle, MarginGetStyleOffset, MarginGetStyles, MarginGetText, MarginSetStyle, MarginSetStyleOffset, MarginSetStyles, MarginSetText, MarginTextClearAll, MarkerAdd, MarkerAddSet, MarkerDefine, MarkerDefineBitmap, MarkerDefineRGBAImage, MarkerDelete, MarkerDeleteAll, MarkerDeleteHandle, MarkerEnableHighlight, MarkerGet, MarkerLineFromHandle, MarkerNext, MarkerPrevious, MarkerSetAlpha, MarkerSetBackground, MarkerSetBackgroundSelected, MarkerSetForeground, MoveCaretInsideView, MoveSelectedLinesDown, MoveSelectedLinesUp, NewLine, PageDown, PageDownExtend, PageDownRectExtend, PageUp, PageUpExtend, PageUpRectExtend, ParaDown, ParaDownExtend, ParaUp, ParaUpExtend, PointFromPosition, PositionAfter, PositionBefore, PositionFromLine, PositionFromPoint, PositionFromPointClose, PositionToXY, PrivateLexerCall, PropertyNames, PropertyType, RGBAImageSetHeight, RGBAImageSetWidth, RegisterImage, RegisterRGBAImage, ReleaseDocument, ReplaceSelection, ReplaceTarget, ReplaceTargetRE, RotateSelection, ScrollToColumn, ScrollToEnd, ScrollToLine, ScrollToStart, SearchAnchor, SearchInTarget, SearchNext, SearchPrev, SelectNone, SelectionDuplicate, SelectionIsRectangle, SendMsg, SetAdditionalCaretForeground, SetAdditionalCaretsBlink, SetAdditionalCaretsVisible, SetAdditionalSelAlpha, SetAdditionalSelBackground, SetAdditionalSelForeground, SetAdditionalSelectionTyping, SetAnchor, SetBackSpaceUnIndents, SetBufferedDraw, SetCaretForeground, SetCaretLineBack, SetCaretLineBackAlpha, SetCaretLineBackground, SetCaretLineVisible, SetCaretPeriod, SetCaretSticky, SetCaretStyle, SetCaretWidth, SetCharsDefault, SetCodePage, SetControlCharSymbol, SetCurrentPos, SetDocPointer, SetEOLMode, SetEdgeColour, SetEdgeColumn, SetEdgeMode, SetEmptySelection, SetEndAtLastLine, SetExtraAscent, SetExtraDescent, SetFirstVisibleLine, SetFoldExpanded, SetFoldFlags, SetFoldLevel, SetFoldMarginColour, SetFoldMarginHiColour, SetHScrollBar, SetHighlightGuide, SetHotspotActiveBackground, SetHotspotActiveForeground, SetHotspotActiveUnderline, SetHotspotSingleLine, SetIdentifier, SetIndent, SetIndentationGuides, SetIndicatorCurrent, SetIndicatorValue, SetKeyWords, SetKeysUnicode, SetLastKeydownProcessed, SetLayoutCache, SetLexer, SetLexerLanguage, SetLineIndentation, SetLineState, SetMainSelection, SetMarginCursor, SetMarginLeft, SetMarginMask, SetMarginOptions, SetMarginRight, SetMarginSensitive, SetMarginType, SetMarginWidth, SetMargins, SetModEventMask, SetMouseDownCaptures, SetMouseDwellTime, SetMultiPaste, SetMultipleSelection, SetOvertype, SetPasteConvertEndings, SetPositionCacheSize, SetPrintColourMode, SetPrintMagnification, SetPrintWrapMode, SetProperty, SetPunctuationChars, SetReadOnly, SetRectangularSelectionAnchor, SetRectangularSelectionAnchorVirtualSpace, SetRectangularSelectionCaret, SetRectangularSelectionCaretVirtualSpace, SetRectangularSelectionModifier, SetSTCCursor, SetSTCFocus, SetSavePoint, SetScrollWidth, SetScrollWidthTracking, SetSearchFlags, SetSelAlpha, SetSelBackground, SetSelEOLFilled, SetSelForeground, SetSelectionEnd, SetSelectionMode, SetSelectionNAnchor, SetSelectionNAnchorVirtualSpace, SetSelectionNCaret, SetSelectionNCaretVirtualSpace, SetSelectionNEnd, SetSelectionNStart, SetSelectionStart, SetStatus, SetStyleBits, SetStyleBytes, SetStyling, SetTabIndents, SetTabWidth, SetTargetEnd, SetTargetStart, SetTechnology, SetText, SetTextRaw, SetTextUTF8, SetTwoPhaseDraw, SetUndoCollection, SetUseAntiAliasing, SetUseHorizontalScrollBar, SetUseTabs, SetUseVerticalScrollBar, SetVScrollBar, SetViewEOL, SetViewWhiteSpace, SetVirtualSpaceOptions, SetVisiblePolicy, SetWhitespaceBackground, SetWhitespaceChars, SetWhitespaceForeground, SetWhitespaceSize, SetWordChars, SetWrapIndentMode, SetWrapMode, SetWrapStartIndent, SetWrapVisualFlags, SetWrapVisualFlagsLocation, SetXCaretPolicy, SetXOffset, SetYCaretPolicy, SetZoom, ShowLines, StartRecord, StartStyling, StopRecord, StutteredPageDown, StutteredPageDownExtend, StutteredPageUp, StutteredPageUpExtend, StyleClearAll, StyleGetBackground, StyleGetBold, StyleGetCase, StyleGetChangeable, StyleGetCharacterSet, StyleGetEOLFilled, StyleGetFaceName, StyleGetFont, StyleGetForeground, StyleGetHotSpot, StyleGetItalic, StyleGetSize, StyleGetSizeFractional, StyleGetUnderline, StyleGetVisible, StyleGetWeight, StyleResetDefault, StyleSetBackground, StyleSetBold, StyleSetCase, StyleSetChangeable, StyleSetCharacterSet, StyleSetEOLFilled, StyleSetFaceName, StyleSetFont, StyleSetFontAttr, StyleSetFontEncoding, StyleSetForeground, StyleSetHotSpot, StyleSetItalic, StyleSetSize, StyleSetSizeFractional, StyleSetSpec, StyleSetUnderline, StyleSetVisible, StyleSetWeight, SwapMainAnchorCaret, Tab, TargetFromSelection, TextHeight, TextWidth, ToggleCaretSticky, ToggleFold, UpperCase, UsePopUp, UserListShow, VCHome, VCHomeExtend, VCHomeRectExtend, VCHomeWrap, VCHomeWrapExtend, VerticalCentreCaret, VisibleFromDocLine, WordEndPosition, WordLeft, WordLeftEnd, WordLeftEndExtend, WordLeftExtend, WordPartLeft, WordPartLeftExtend, WordPartRight, WordPartRightExtend, WordRight, WordRightEnd, WordRightEndExtend, WordRightExtend, WordStartPosition, WrapCount, ZoomIn, ZoomOut, __repr__

Inherited from wx._core.Control: Command, GetAlignment, GetLabelText, SetLabelMarkup, SetLabelText

Inherited from wx._core.Window: AcceptsFocus, AcceptsFocusFromKeyboard, AddChild, AdjustForLayoutDirection, AlwaysShowScrollbars, AssociateHandle, CacheBestSize, CanAcceptFocus, CanAcceptFocusFromKeyboard, CanApplyThemeBorder, CanBeOutsideClientArea, CanScroll, CanSetTransparent, CaptureMouse, Center, CenterOnParent, Centre, CentreOnParent, ClearBackground, ClientToScreen, ClientToScreenXY, ClientToWindowSize, Close, ConvertDialogPointToPixels, ConvertDialogSizeToPixels, ConvertPixelPointToDialog, ConvertPixelSizeToDialog, DLG_PNT, DLG_SZE, Destroy, DestroyChildren, Disable, DissociateHandle, DragAcceptFiles, Enable, FindWindowById, FindWindowByLabel, FindWindowByName, Fit, FitInside, Freeze, GetAcceleratorTable, GetAdjustedBestSize, GetAutoLayout, GetBackgroundColour, GetBackgroundStyle, GetBestFittingSize, GetBestSize, GetBestSizeTuple, GetBestVirtualSize, GetBorder, GetCaret, GetCharHeight, GetCharWidth, GetChildren, GetClientAreaOrigin, GetClientRect, GetClientSize, GetClientSizeTuple, GetConstraints, GetContainingSizer, GetCursor, GetDefaultAttributes, GetDropTarget, GetEffectiveMinSize, GetEventHandler, GetExtraStyle, GetFont, GetForegroundColour, GetFullTextExtent, GetGrandParent, GetGtkWidget, GetHandle, GetHelpText, GetHelpTextAtPoint, GetId, GetLabel, GetLayoutDirection, GetMainWindowOfCompositeControl, GetMaxClientSize, GetMaxHeight, GetMaxSize, GetMaxWidth, GetMinClientSize, GetMinHeight, GetMinSize, GetMinWidth, GetName, GetNextSibling, GetParent, GetPopupMenuSelectionFromUser, GetPosition, GetPositionTuple, GetPrevSibling, GetRect, GetScreenPosition, GetScreenPositionTuple, GetScreenRect, GetScrollPos, GetScrollRange, GetScrollThumb, GetSize, GetSizeTuple, GetSizer, GetTextExtent, GetThemeEnabled, GetToolTip, GetToolTipString, GetTopLevelParent, GetUpdateClientRect, GetUpdateRegion, GetValidator, GetVirtualSize, GetVirtualSizeTuple, GetWindowBorderSize, GetWindowStyle, GetWindowStyleFlag, GetWindowVariant, HandleAsNavigationKey, HandleWindowEvent, HasCapture, HasExtraStyle, HasFlag, HasFocus, HasMultiplePages, HasScrollbar, HasTransparentBackground, Hide, HideWithEffect, HitTest, HitTestXY, InformFirstDirection, InheritAttributes, InheritsBackgroundColour, InitDialog, InvalidateBestSize, IsBeingDeleted, IsDoubleBuffered, IsEnabled, IsExposed, IsExposedPoint, IsExposedRect, IsFrozen, IsRetained, IsScrollbarAlwaysShown, IsShown, IsShownOnScreen, IsThisEnabled, IsTopLevel, Layout, Lower, MakeModal, Move, MoveAfterInTabOrder, MoveBeforeInTabOrder, MoveXY, Navigate, NavigateIn, PopEventHandler, PopupMenu, PopupMenuXY, PostCreate, PostSizeEvent, PostSizeEventToParent, ProcessWindowEvent, PushEventHandler, Raise, Refresh, RefreshRect, RegisterHotKey, ReleaseMouse, RemoveChild, RemoveEventHandler, Reparent, ScreenToClient, ScreenToClientXY, ScrollLines, ScrollPages, ScrollWindow, SendIdleEvents, SendSizeEvent, SendSizeEventToParent, SetAcceleratorTable, SetAutoLayout, SetBackgroundColour, SetBackgroundStyle, SetBestFittingSize, SetCanFocus, SetCaret, SetClientRect, SetClientSize, SetClientSizeWH, SetConstraints, SetContainingSizer, SetCursor, SetDimensions, SetDoubleBuffered, SetDropTarget, SetEventHandler, SetExtraStyle, SetFocus, SetFocusFromKbd, SetFont, SetForegroundColour, SetHelpText, SetHelpTextForId, SetId, SetInitialSize, SetLabel, SetLayoutDirection, SetMaxClientSize, SetMaxSize, SetMinClientSize, SetMinSize, SetName, SetOwnBackgroundColour, SetOwnFont, SetOwnForegroundColour, SetPosition, SetRect, SetScrollPos, SetScrollbar, SetSize, SetSizeHints, SetSizeHintsSz, SetSizeWH, SetSizer, SetSizerAndFit, SetThemeEnabled, SetToolTip, SetToolTipString, SetTransparent, SetValidator, SetVirtualSize, SetVirtualSizeHints, SetVirtualSizeHintsSz, SetVirtualSizeWH, SetWindowStyle, SetWindowStyleFlag, SetWindowVariant, ShouldInheritColours, Show, ShowWithEffect, Thaw, ToggleWindowStyle, TransferDataFromWindow, TransferDataToWindow, UnregisterHotKey, UnsetToolTip, Update, UpdateWindowUI, UseBgCol, Validate, WarpPointer, WindowToClientSize

Inherited from wx._core.EvtHandler: AddPendingEvent, Bind, Connect, DeletePendingEvents, Disconnect, GetEvtHandlerEnabled, GetNextHandler, GetPreviousHandler, IsUnlinked, ProcessEvent, ProcessEventLocally, ProcessPendingEvents, QueueEvent, SafelyProcessEvent, SetEvtHandlerEnabled, SetNextHandler, SetPreviousHandler, Unbind, Unlink

Inherited from wx._core.EvtHandler (private): _setOORInfo

Inherited from wx._core.Object: GetClassName, IsSameAs

Inherited from wx._core.TextAreaBase: DiscardEdits, GetDefaultStyle, GetLineLength, GetLineText, GetNumberOfLines, GetStyle, HitTestPos, IsModified, LoadFile, MarkDirty, PositionToCoords, SaveFile, SetDefaultStyle, SetModified, SetStyle, ShowPosition, XYToPosition, __del__, __swig_destroy__

Inherited from wx._core.TextEntryBase: AppendText, AutoComplete, AutoCompleteDirectories, AutoCompleteFileNames, CanCopy, CanCut, CanPaste, CanRedo, CanUndo, ChangeValue, Clear, Copy, Cut, GetHint, GetInsertionPoint, GetLastPosition, GetMargins, GetRange, GetSelection, GetString, GetStringSelection, GetValue, HasSelection, IsEditable, IsEmpty, Paste, Redo, Remove, RemoveSelection, Replace, SelectAll, SetEditable, SetHint, SetInsertionPoint, SetInsertionPointEnd, SetMaxLength, SetSelection, SetValue, Undo, WriteText

Inherited from object: __delattr__, __format__, __getattribute__, __hash__, __new__, __reduce__, __reduce_ex__, __setattr__, __sizeof__, __str__, __subclasshook__

Static Methods [hide private]

Inherited from wx.stc.StyledTextCtrl: GetLibraryVersionInfo

Inherited from wx._core.Control: Ellipsize, EscapeMnemonics, FindAccelIndex, GetClassDefaultAttributes, GetCompositeControlsDefaultAttributes, RemoveMnemonics

Inherited from wx._core.Window: FindFocus, GetCapture, NewControlId, ReleaseControlId, UnreserveControlId

Properties [hide private]

Inherited from wx.stc.StyledTextCtrl: Anchor, BackSpaceUnIndents, BufferedDraw, CaretForeground, CaretLineBack, CaretLineBackAlpha, CaretLineBackground, CaretLineVisible, CaretPeriod, CaretSticky, CaretStyle, CaretWidth, CodePage, ControlCharSymbol, CurLine, CurLineRaw, CurLineUTF8, CurrentLine, CurrentPos, DocPointer, EOLMode, EdgeColour, EdgeColumn, EdgeMode, EndAtLastLine, EndStyled, FirstVisibleLine, HighlightGuide, HotspotActiveBackground, HotspotActiveForeground, HotspotActiveUnderline, HotspotSingleLine, Indent, IndentationGuides, IndicatorCurrent, IndicatorValue, LastKeydownProcessed, LayoutCache, Length, Lexer, LineCount, MarginLeft, MarginRight, MaxLineState, ModEventMask, Modify, MouseDownCaptures, MouseDwellTime, Overtype, PasteConvertEndings, PositionCacheSize, PrintColourMode, PrintMagnification, PrintWrapMode, ReadOnly, STCCursor, STCFocus, ScrollWidth, ScrollWidthTracking, SearchFlags, SelAlpha, SelEOLFilled, SelectedText, SelectedTextRaw, SelectedTextUTF8, SelectionEnd, SelectionMode, SelectionStart, Status, StyleBits, StyleBitsNeeded, TabIndents, TabWidth, TargetEnd, TargetStart, Text, TextLength, TextRaw, TextUTF8, TwoPhaseDraw, UndoCollection, UseAntiAliasing, UseHorizontalScrollBar, UseTabs, UseVerticalScrollBar, ViewEOL, ViewWhiteSpace, WrapMode, WrapStartIndent, WrapVisualFlags, WrapVisualFlagsLocation, XOffset, Zoom, thisown

Inherited from wx._core.Control: Alignment, LabelText

Inherited from wx._core.Window: AcceleratorTable, AutoLayout, BackgroundColour, BackgroundStyle, BestSize, BestVirtualSize, Border, Caret, CharHeight, CharWidth, Children, ClientAreaOrigin, ClientRect, ClientSize, Constraints, ContainingSizer, Cursor, DefaultAttributes, DropTarget, EffectiveMinSize, Enabled, EventHandler, ExtraStyle, Font, ForegroundColour, GrandParent, GtkWidget, Handle, HelpText, Id, Label, LayoutDirection, MaxClientSize, MaxHeight, MaxSize, MaxWidth, MinClientSize, MinHeight, MinSize, MinWidth, Name, Parent, Position, Rect, ScreenPosition, ScreenRect, Shown, Size, Sizer, ThemeEnabled, ToolTip, ToolTipString, TopLevel, TopLevelParent, UpdateClientRect, UpdateRegion, Validator, VirtualSize, WindowStyle, WindowStyleFlag, WindowVariant

Inherited from wx._core.EvtHandler: EvtHandlerEnabled, NextHandler, PreviousHandler

Inherited from wx._core.Object: ClassName

Inherited from wx._core.TextAreaBase: DefaultStyle, NumberOfLines

Inherited from wx._core.TextEntryBase: InsertionPoint, LastPosition, Selection, Value

Inherited from object: __class__

Method Details [hide private]

__init__(self, parent, controller, log_queue=None, id=-1, pos=wx.Point(-1, -1), size=wx.Size(-1, -1), style=134217728, name=u'stcwindow')
(Constructor)

source code 

Set up the log control.

Parameters:
  • parent (Window) - The parent wx window object.
  • controller (wx.Frame instance) - The controller window.
  • log_queue (Queue.Queue instance) - The queue of log messages.
  • id (int) - The wx ID.
  • pos (Point) - The window position.
  • size (Size) - The window size.
  • style (long) - The StyledTextCtrl to apply.
  • name (str) - The window name.
Returns: EvtHandler
Overrides: object.__init__

capture_keys(self, event)

source code 

Control which key events are active, preventing text insertion and deletion.

Parameters:
  • event (wx event) - The wx event.

capture_mouse(self, event)

source code 

Control the mouse events.

Parameters:
  • event (wx event) - The wx event.

capture_mouse_wheel(self, event)

source code 

Control the mouse wheel events.

Parameters:
  • event (wx event) - The wx event.

capture_scroll(self, event)

source code 

Control the window scrolling events.

Parameters:
  • event (wx event) - The wx event.

find(self, event)

source code 

Find the text in the log control.

Parameters:
  • event (wx event) - The wx event.

find_close(self, event)

source code 

Close the find dialog.

Parameters:
  • event (wx event) - The wx event.

find_open(self, event)

source code 

Display the text finding dialog.

Parameters:
  • event (wx event) - The wx event.

find_next(self, event)

source code 

Find the next instance of the text.

Parameters:
  • event (wx event) - The wx event.

get_text(self)

source code 

Concatenate all of the text from the log queue and return it as a string.

Returns: list of str, list of int
A list of the text from the log queue and a list of the streams these correspond to.

limit_scrollback(self, prune=20)

source code 

Limit scroll back to the maximum number of lines.

Lines are deleted in blocks of 'prune' number of lines for faster operation.

on_copy(self, event)

source code 

Copy the selected text.

Parameters:
  • event (wx event) - The wx event.

on_goto_end(self, event)

source code 

Move to the end of the text.

Parameters:
  • event (wx event) - The wx event.

on_goto_start(self, event)

source code 

Move to the start of the text.

Parameters:
  • event (wx event) - The wx event.

on_select_all(self, event)

source code 

Select all text in the control.

Parameters:
  • event (wx event) - The wx event.

on_zoom_in(self, event)

source code 

Zoom in by increase the font by 1 point size.

Parameters:
  • event (wx event) - The wx event.

on_zoom_orig(self, event)

source code 

Zoom to the original zoom level.

Parameters:
  • event (wx event) - The wx event.

on_zoom_out(self, event)

source code 

Zoom out by decreasing the font by 1 point size.

Parameters:
  • event (wx event) - The wx event.

pop_up_menu(self, event)

source code 

Override the StyledTextCtrl pop up menu.

Parameters:
  • event (wx event) - The wx event.