Module calendarentryeditor :: Class Editor
[hide private]
[frames] | no frames]

Class Editor

source code

     object --+                    
              |                    
wx._core.Object --+                
                  |                
wx._core.EvtHandler --+            
                      |            
        wx._core.Window --+        
                          |        
 wx._windows.TopLevelWindow --+    
                              |    
             wx._windows.Dialog --+
                                  |
                                 Editor

Instance Methods [hide private]
EvtHandler
__init__(self, parent)
__init__(self, Window parent, int id=-1, String title=EmptyString, ...
source code
 
OnPhoneChanged(self, _) source code
 
OnListBoxItem(self, evt=None)
Callback for when user clicks on an event in the listbox
source code
 
getcurrententry(self)
Returns the entry currently being viewed
source code
entry(dict)
getentry(self, num)
maps from entry number in listbox to an entry in entries
source code
 
OnSaveButton(self, evt)
Callback for when user presses save
source code
 
OnOk(self, evt) source code
 
OnCancel(self, evt) source code
 
OnRevertButton(self, evt) source code
 
OnNewButton(self, evt) source code
 
OnDeleteButton(self, evt) source code
 
OnPrevDayButton(self, evt) source code
 
OnNextDayButton(self, evt) source code
 
setdate(self, year, month, day, entry=None)
Sets the date we are editing entries for
source code
 
refreshentries(self)
re-requests the list of entries for the currently visible date from the main calendar
source code
 
updatelistbox(self, entrytoselect=None)
Updates the contents of the listbox.
source code
 
updatefields(self, entry) source code
 
OnMakeDirty(self, _=None)
A public function you can call that will set the dirty flag
source code
 
setdirty(self, val)
Set the dirty flag
source code
 
AskAboutRepeatDelete(self)
Asks the user if they wish to delete the original (repeating) entry, or this instance
source code
 
AskAboutRepeatChange(self)
Asks the user if they wish to change the original (repeating) entry, or this instance
source code
 
_AskAboutRecurringEvent(self, caption, text, prefix) source code

Inherited from wx._windows.Dialog: Create, CreateButtonSizer, CreateSeparatedButtonSizer, CreateStdDialogButtonSizer, CreateTextSizer, EndModal, GetAffirmativeId, GetEscapeId, GetReturnCode, IsModal, SetAffirmativeId, SetEscapeId, SetReturnCode, ShowModal, __repr__

Inherited from wx._windows.Dialog (private): _CreateButtonSizer

Inherited from wx._windows.TopLevelWindow: CenterOnScreen, CentreOnScreen, EnableCloseButton, GetDefaultItem, GetIcon, GetTitle, GetTmpDefaultItem, Iconize, IsActive, IsAlwaysMaximized, IsFullScreen, IsIconized, IsMaximized, MacGetMetalAppearance, MacGetTopLevelWindowRef, MacGetUnifiedAppearance, MacSetMetalAppearance, Maximize, RequestUserAttention, Restore, SetDefaultItem, SetIcon, SetIcons, SetShape, SetTitle, SetTmpDefaultItem, ShowFullScreen

Inherited from wx._core.Window: AcceptsFocus, AcceptsFocusFromKeyboard, AddChild, AdjustForLayoutDirection, AssociateHandle, CacheBestSize, 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, GetMaxHeight, GetMaxSize, GetMaxWidth, GetMinHeight, GetMinSize, GetMinWidth, GetName, GetParent, GetPosition, GetPositionTuple, GetRect, GetScreenPosition, GetScreenPositionTuple, GetScreenRect, GetScrollPos, GetScrollRange, GetScrollThumb, GetSize, GetSizeTuple, GetSizer, GetTextExtent, GetThemeEnabled, GetToolTip, GetTopLevelParent, GetUpdateClientRect, GetUpdateRegion, GetValidator, GetVirtualSize, GetVirtualSizeTuple, GetWindowBorderSize, GetWindowStyle, GetWindowStyleFlag, GetWindowVariant, HasCapture, HasFlag, HasMultiplePages, HasScrollbar, HasTransparentBackground, Hide, HitTest, HitTestXY, InheritAttributes, InheritsBackgroundColour, InitDialog, InvalidateBestSize, IsBeingDeleted, IsDoubleBuffered, IsEnabled, IsExposed, IsExposedPoint, IsExposedRect, IsFrozen, IsRetained, IsShown, IsShownOnScreen, IsTopLevel, Layout, LineDown, LineUp, Lower, MakeModal, Move, MoveAfterInTabOrder, MoveBeforeInTabOrder, MoveXY, Navigate, OnPaint, PageDown, PageUp, PopEventHandler, PopupMenu, PopupMenuXY, PostCreate, PrepareDC, PushEventHandler, Raise, Refresh, RefreshRect, RegisterHotKey, ReleaseMouse, RemoveChild, RemoveEventHandler, Reparent, ScreenToClient, ScreenToClientXY, ScrollLines, ScrollPages, ScrollWindow, SendSizeEvent, SetAcceleratorTable, SetAutoLayout, SetBackgroundColour, SetBackgroundStyle, SetBestFittingSize, SetCaret, SetClientRect, SetClientSize, SetClientSizeWH, SetConstraints, SetContainingSizer, SetCursor, SetDimensions, SetDoubleBuffered, SetDropTarget, SetEventHandler, SetExtraStyle, SetFocus, SetFocusFromKbd, SetFont, SetForegroundColour, SetHelpText, SetHelpTextForId, SetId, SetInitialSize, SetLabel, SetLayoutDirection, SetMaxSize, 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, Thaw, ToggleWindowStyle, TransferDataFromWindow, TransferDataToWindow, UnregisterHotKey, Update, UpdateWindowUI, UseBgCol, Validate, WarpPointer, WindowToClientSize

Inherited from wx._core.EvtHandler: AddPendingEvent, Bind, Connect, Disconnect, GetEvtHandlerEnabled, GetNextHandler, GetPreviousHandler, ProcessEvent, ProcessPendingEvents, SetEvtHandlerEnabled, SetNextHandler, SetPreviousHandler, Unbind

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

Inherited from wx._core.Object: GetClassName, IsSameAs

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

Static Methods [hide private]

Inherited from wx._windows.Dialog: GetClassDefaultAttributes

Inherited from wx._core.Window: FindFocus, GetCapture, NewControlId, NextControlId, PrevControlId

Class Variables [hide private]
  ANSWER_ORIGINAL = 1
  ANSWER_THIS = 2
  ANSWER_CANCEL = 3
  _dict_key_index = 0
  _label_index = 1
  _get_index = 2
  _set_index = 3
  _w_index = 4
  _general_page = 0
  _repeat_page = 1
  _notes_page = 2
  _categories_page = 3
  _wallpapers_page = 4
  _ringtones_page = 5
  _last_page = 6
  _items = [('General', None, <class 'calendarentryeditor.Genera...
  color_field_name = 'calendar'

Inherited from wx._windows.Dialog: ButtonSizerFlags

Properties [hide private]

Inherited from wx._windows.Dialog: AffirmativeId, EscapeId, ReturnCode, thisown

Inherited from wx._windows.TopLevelWindow: DefaultItem, Icon, Title, TmpDefaultItem

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, MaxHeight, MaxSize, MaxWidth, MinHeight, MinSize, MinWidth, Name, Parent, Position, Rect, ScreenPosition, ScreenRect, Shown, Size, Sizer, ThemeEnabled, ToolTip, 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 object: __class__

Method Details [hide private]

__init__(self, parent)
(Constructor)

source code 

__init__(self, Window parent, int id=-1, String title=EmptyString, 
    Point pos=DefaultPosition, Size size=DefaultSize, 
    long style=DEFAULT_DIALOG_STYLE, String name=DialogNameStr) -> Dialog

Returns: EvtHandler
Overrides: object.__init__
(inherited documentation)

getcurrententry(self)

source code 

Returns the entry currently being viewed

Note: this returns the unedited form of the entry

getentry(self, num)

source code 

maps from entry number in listbox to an entry in entries

Parameters:
  • num (int)
Returns: entry(dict)

setdate(self, year, month, day, entry=None)

source code 

Sets the date we are editing entries for

Note: The list of entries is updated

updatelistbox(self, entrytoselect=None)

source code 

Updates the contents of the listbox. It will re-sort the contents.

Parameters:
  • entrytoselect - The integer id of an entry to select. Note that this is an event id, not an index

setdirty(self, val)

source code 

Set the dirty flag

The various buttons in the dialog are enabled/disabled as appropriate for the new state.

Parameters:
  • val (Bool) - True to mark edit fields as different from entry (ie editing has taken place) False to make them as the same as the entry (ie no editing or the edits have been discarded)

AskAboutRepeatDelete(self)

source code 

Asks the user if they wish to delete the original (repeating) entry, or this instance

Returns:
An ANSWER_ constant

AskAboutRepeatChange(self)

source code 

Asks the user if they wish to change the original (repeating) entry, or this instance

Returns:
An ANSWER_ constant

Class Variable Details [hide private]

_items

Value:
[('General', None, <class 'calendarentryeditor.GeneralEditor'>, None),
 ('Repeat',
  'repeat',
  <class 'calendarentryeditor.RepeatEditor'>,
  None),
 ('Notes', 'notes', <class 'phonebookentryeditor.MemoEditor'>, 'memo')\
,
 ('Categories', 'categories', <class 'calendarentryeditor.CategoryEdit\
...