Package Gnumed :: Package timelinelib :: Package wxgui :: Package dialogs :: Package eraeditor :: Module view :: Class EraEditorDialog |
[frames] | no frames]

# Class EraEditorDialog

source code

    humblewx.Dialog --+
                      |
       framework.Dialog --+
                          |
                         EraEditorDialog

    <BoxSizerVertical>
        <StaticBoxSizerVertical label="$(groupbox_text)" border="ALL" >
            <FlexGridSizer rows="0" columns="2" border="ALL">
                <StaticText
                    label="$(when_text)"
                    align="ALIGN_CENTER_VERTICAL"
                />
                <PeriodPicker
                    time_type="$(time_type)"
                    config="$(config)"
                    name="period_picker"
                />
                <Spacer />
                <BoxSizerHorizontal >
                    <CheckBox
                        align="ALIGN_CENTER_VERTICAL"
                        label="$(ends_today_text)"
                        name="cbx_ends_today"
                    />
                </BoxSizerHorizontal>
                <StaticText
                    label="$(name_text)"
                    align="ALIGN_CENTER_VERTICAL"
                />
                <TextCtrl name="txt_name" />
                <StaticText
                    label="$(colour_text)"
                    align="ALIGN_CENTER_VERTICAL"
                />
                <ColourSelect
                    name="colorpicker"
                    align="ALIGN_CENTER_VERTICAL"
                    width="60"
                    height="30"
                />
            </FlexGridSizer>
        </StaticBoxSizerVertical>
        <DialogButtonsOkCancelSizer
            border="LEFT|RIGHT|BOTTOM"
            event_EVT_BUTTON__ID_OK="on_ok"
        />
    </BoxSizerVertical>

Instance Methods
__init__(self, parent, title, time_type, config, era) | source code
GetPeriod(self) | source code
SetPeriod(self, time_period) | source code
GetEndsToday(self) | source code
SetEndsToday(self, value) | source code
GetName(self) | source code
SetName(self, name) | source code
GetColor(self) | source code
SetColor(self, new_color) | source code
DisplayInvalidPeriod(self, message) | source code
DisplayInvalidName(self, message) | source code
DisplayInvalidColor(self, message) | source code
Inherited from `framework.Dialog`: `DisplayErrorMessage`, `DisplayInformationMessage`, `EndModalOk`