module timelinelib.wxgui.dialogs.editevent.view

class timelinelib.wxgui.dialogs.editevent.view.EditEventDialog[source]

Bases: timelinelib.wxgui.framework.Dialog

<BoxSizerVertical>
<StaticBoxSizerVertical label=”$(properties_label)” border=”ALL” proportion=”1”>
<FlexGridSizer name=”grid_sizer” columns=”2” growableColumns=”1” border=”ALL” proportion=”1”>

%s

</FlexGridSizer>

</StaticBoxSizerVertical> <CheckBox

name=”add_more_checkbox” label=”$(add_more_label)” border=”LEFT|RIGHT|BOTTOM”

/> <BoxSizerHorizontal border=”LEFT|RIGHT|BOTTOM”>

<TwoStateButton

initial_state_label=”$(enlarge)” second_state_label=”$(reduce)” event_EVT_INITIAL_STATE_CLICKED=”on_enlarge_click” event_EVT_SECOND_STATE_CLICKED=”on_reduce_click”

/> <Spacer /> <Button

name=”duplicate” label=”$(duplicate_label)” event_EVT_BUTTON=”on_duplicate”

/> <StretchSpacer /> <DialogButtonsOkCancelSizer

event_EVT_BUTTON__ID_OK=”on_ok_clicked”

/>

</BoxSizerHorizontal>

</BoxSizerVertical>

TIME_DETAILS_ROW = '\n <StaticText align="ALIGN_CENTER_VERTICAL" label="$(when_label)" />\n <BoxSizerHorizontal>\n <PeriodPicker\n name="period_picker"\n time_type="$(time_type)"\n config="$(config)"\n />\n </BoxSizerHorizontal>\n '
CHECKBOX_ROW = '\n <Spacer />\n <FlexGridSizer rows="1">\n <CheckBox\n name="fuzzy_start_checkbox"\n label="$(fuzzy_start_checkbox_text)"\n />\n <CheckBox\n name="fuzzy_end_checkbox"\n label="$(fuzzy_end_checkbox_text)"\n />\n <CheckBox\n name="locked_checkbox"\n event_EVT_CHECKBOX="on_locked_checkbox_changed"\n label="$(locked_checkbox_text)"\n />\n <CheckBox\n name="ends_today_checkbox"\n label="$(ends_today_checkbox_text)"\n />\n </FlexGridSizer>\n '
TEXT_FIELD_ROW = '\n <StaticText align="ALIGN_CENTER_VERTICAL" label="$(text_label)" />\n <TextCtrl name="name" />\n '
CATEGORY_LISTBOX_ROW = '\n <StaticText align="ALIGN_CENTER_VERTICAL" label="$(category_label)" />\n <CategoryChoice\n name="category_choice"\n allow_add="True"\n timeline="$(db)"\n align="ALIGN_LEFT"\n />\n '
CONTAINER_LISTBOX_ROW = '\n <StaticText align="ALIGN_CENTER_VERTICAL" label="$(container_label)" />\n <ContainerChoice\n name="container_choice"\n event_EVT_CONTAINER_CHANGED="on_container_changed"\n db="$(db)"\n align="ALIGN_LEFT"\n />\n '
NOTEBOOK_ROW = '\n <Spacer />\n <Notebook name="notebook" style="BK_DEFAULT">\n <DescriptionEditor\n name="description"\n notebookLabel="$(page_description)"\n editor="$(self)"\n proportion="1"\n />\n <DescriptionEditor\n name="labels"\n notebookLabel="$(page_labels)"\n editor="$(self)"\n proportion="1"\n />\n <IconEditor\n name="icon"\n notebookLabel="$(page_icon)"\n editor="$(self)"\n proportion="1"\n />\n <AlertEditor\n name="alert"\n notebookLabel="$(page_alert)"\n editor="$(self)"\n proportion="1"\n />\n <HyperlinkEditor\n name="hyperlink"\n notebookLabel="$(page_hyperlink)"\n editor="$(self)"\n proportion="1"\n />\n <ProgressEditor\n name="progress"\n notebookLabel="$(page_progress)"\n editor="$(self)"\n proportion="1"\n />\n <ColorEditor\n name="default_color"\n notebookLabel="$(color)"\n editor="$(self)"\n proportion="1"\n />\n </Notebook>\n '
__init__(parent, config, title, db, start=None, end=None, event=None)[source]

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

GetDuplicateEventDialog(timeline, event)[source]
GetPeriod()[source]
SetPeriod(value)[source]
GetShowPeriod()[source]
SetShowPeriod(value)[source]
GetShowTime()[source]
SetShowTime(value)[source]
DisableTime()[source]
GetFuzzy()[source]
GetFuzzyStart()[source]
SetFuzzyStart(value)[source]
GetFuzzyEnd()[source]
SetFuzzyEnd(value)[source]
GetLocked()[source]
SetLocked(value)[source]
EnableLocked(value)[source]
GetEndsToday()[source]
SetEndsToday(value)[source]
EnableEndsToday(value)[source]
GetName() → String[source]

Returns the window’s name.

SetName(name)[source]

Sets the window’s name.

GetCategory()[source]
SetCategory(value)[source]
GetContainer()[source]
SetContainer(value)[source]
GetEventData()[source]
SetEventData(event_data)[source]
ClearEventData()[source]
IsAddMoreChecked()[source]
SetShowAddMoreCheckbox(value)[source]
SetFocusOnFirstControl()[source]
DisplayInvalidPeriod(message)[source]
timelinelib.wxgui.dialogs.editevent.view.open_event_editor_for(main_frame, parent, config, db, event)[source]
timelinelib.wxgui.dialogs.editevent.view.open_create_event_editor(edit_controller, parent, config, db, start=None, end=None)[source]