module timelinelib.wxgui.components.mainpanel¶
-
class
timelinelib.wxgui.components.mainpanel.
MainPanel
[source]¶ Bases:
wx._core.Panel
Panel that covers the whole client area of MainFrame.
Displays one of the following panels:
The welcome panel (show_welcome_panel)
The timeline panel (show_timeline_panel)
Also displays the search bar.
-
__init__
(parent, config, main_frame)[source]¶ Initialize self. See help(type(self)) for accurate signature.
-
property
canvas
¶
-
property
main_frame
¶
-
save_time_period
()[source]¶ Whenever the period of the visible timeline is changed, this function is called to save the old period to enable the restore of the previous period.
-
restore_time_period
()[source]¶ When user selects the menu alternative “Restore previous time period” and the time period has been changed, this function navigates to the old period.
Performs a keyboard navigation action starting from this window.