module timelinelib.canvas.timelinecanvas

timelinelib.canvas.timelinecanvas.MOVE_HANDLE = 0
timelinelib.canvas.timelinecanvas.LEFT_RESIZE_HANDLE = 1
timelinelib.canvas.timelinecanvas.RIGHT_RESIZE_HANDLE = 2
timelinelib.canvas.timelinecanvas.HIT_REGION_PX_WITH = 5
timelinelib.canvas.timelinecanvas.HSCROLL_STEP = 25
class timelinelib.canvas.timelinecanvas.TimelineCanvas[source]

Bases: wx._core.Panel

This is the surface on which a timeline is drawn. It is also the object that handles user input events such as mouse and keyboard actions.

HORIZONTAL = 8
VERTICAL = 16
BOTH = 32
START = 0
DRAG = 1
STOP = 2
__init__(parent, config)[source]

Initialize self. See help(type(self)) for accurate signature.

property controller
GetAppearance()[source]
SetAppearance(appearance)[source]
GetDividerPosition()[source]
SetDividerPosition(position)[source]
GetHiddenEventCount()[source]
Scroll(factor)[source]
DrawSelectionRect(cursor)[source]
RemoveSelectionRect()[source]
UseFastDraw(use)[source]
GetHScrollAmount()[source]
SetHScrollAmount(amount)[source]
IncrementEventTextFont()[source]
DecrementEventTextFont()[source]
SetPeriodSelection(period)[source]
Snap(time)[source]
PostEvent(event)[source]
SetEventBoxDrawer(event_box_drawer)[source]
SetEventSelected(event, is_selected)[source]
ClearSelectedEvents()[source]
SelectAllEvents()[source]
IsEventSelected(event)[source]
SetHoveredEvent(event)[source]
GetHoveredEvent()[source]
GetSelectedEvent()[source]
GetSelectedEvents()[source]
GetClosestOverlappingEvent(event, up)[source]
GetTimeType()[source]
GetDb()[source]
IsReadOnly()[source]
GetEventAtCursor(prefer_container=False)[source]
GetEventAt(cursor, prefer_container=False)[source]
SelectEventsInRect(rect)[source]
GetEventWithHitInfoAt(cursor)[source]
GetBalloonAtCursor()[source]
GetBalloonAt(cursor)[source]
EventHasStickyBalloon(event)[source]
SetEventStickyBalloon(event, is_sticky)[source]
GetTimeAt(x)[source]
SetTimeline(timeline)[source]
GetViewProperties()[source]
SaveAsPng(path)[source]
SaveAsSvg(path)[source]
GetFilteredEvents(search_target, search_period)[source]
GetTimePeriod()[source]
Navigate(flags=NavigationKeyEvent.IsForward) → bool[source]

Performs a keyboard navigation action starting from this window.

Redraw()[source]
EventIsPeriod(event)[source]
RedrawSurface(fn_draw)[source]
set_size_cursor()[source]
set_move_cursor()[source]
set_default_cursor()[source]
zoom_in()[source]
zoom_out()[source]
Zoom(direction, x)[source]

zoom time line at position x

vertical_zoom_in()[source]
vertical_zoom_out()[source]
ZoomVertically(direction)[source]
Scrollvertically(direction)[source]
SetStartTime(evt)[source]
ZoomHorizontallyOnMouseWheel(evt)[source]
ZoomVerticallyOnMouseWheel(evt)[source]
ScrollHorizontallyOnMouseWheel(evt)[source]
ScrollVerticallyOnMouseWheel(evt)[source]
SpecialScrollVerticallyOnMouseWheel(evt)[source]
DisplayBalloons(evt)[source]
GetTimelineInfoText(evt)[source]
SetCursorShape(evt)[source]
CenterAtCursor(evt)[source]
ToggleEventSelection(evt)[source]
InitDragScroll(direction=4)[source]
StartDragScroll(evt)[source]
DragScroll(evt)[source]
StopDragScroll()[source]
InitDragEventSelect()[source]
StartDragEventSelect(evt)[source]
DragEventSelect(evt)[source]
GetCursor() → Cursor[source]

Return the cursor associated with this window.

StopDragEventSelect()[source]
InitZoomSelect()[source]
StartZoomSelect(evt)[source]
DragZoom(evt)[source]
StopDragZoom()[source]
InitDragPeriodSelect()[source]
StartDragPeriodSelect(evt)[source]
DragPeriodSelect(evt)[source]
StopDragPeriodSelect()[source]
InitDrag(scroll=None, zoom=None, period_select=None, event_select=None)[source]
CallDragMethod(index, evt)[source]
GetPeriodChoices()[source]
property view_properties
HighligtEvent(event, clear=False)[source]