Module importexport :: Class ImportDialog
[hide private]
[frames] | no frames]

Class ImportDialog

source code

     object --+                    
              |                    
wx._core.Object --+                
                  |                
wx._core.EvtHandler --+            
                      |            
        wx._core.Window --+        
                          |        
 wx._windows.TopLevelWindow --+    
                              |    
             wx._windows.Dialog --+
                                  |
                                 ImportDialog
Known Subclasses:

The dialog for importing phonebook stuff

Instance Methods [hide private]
EvtHandler
__init__(self, parent, id, title, style=536877632)
__init__(self, Window parent, int id=-1, String title=EmptyString, ...
source code
 
DataNeedsUpdate(self, _=None)
The preview data needs to be updated
source code
 
OnGridCellChanged(self, event)
Called when the user has changed one of the columns
source code
 
OnClose(self, event=None) source code
 
OnOk(self, _)
Ok button was pressed
source code
 
OnReplaceAll(self, evt)
ReplaceAll button was pressed
source code
 
_reformat_name_firstmiddlelast(self, entry) source code
 
_reformat_name_lastfirtsmiddle(self, entry) source code
 
__build_entry(self, rec) source code
 
__build_bp_entry(self, rec) source code
 
GetFormattedData(self)
Returns the data in BitPim phonebook format
source code
 
GetExtractCategoriesFunction(self) source code
 
OnCategories(self, _) source code
 
UpdateData(*args, **kwargs)
Actually update the preview data
source code
 
_preview_format_name_none(self, row, col, names_col) source code
 
_preview_format_name_lastfirtmiddle(self, row, col, names_col) source code
 
_preview_format_name_firstmiddlelast(self, row, col, names_col) source code
 
FillPreview(self) 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]
  possiblecolumns = ['<ignore>', 'First Name', 'Last Name', 'Mid...
  bp_columns = ['names_title', 'names_first', 'names_middle', 'n...
  filternamecolumns = ['First Name', 'Last Name', 'Middle Name',...
  filternumbercolumns = ['Home Phone', 'Home Fax', 'Mobile Phone...
  filterhomeaddresscolumns = ['Home Street', 'Home City', 'Home ...
  filterbusinessaddresscolumns = ['Business Street', 'Business C...
  filteraddresscolumns = ['Home Street', 'Home City', 'Home Post...
  filteremailcolumns = ['Email Address', 'Email Addresses']
  addressmap = {'City': 'city', 'Country/Region': 'country', 'Po...
  namemap = {'First Name': 'first', 'Last Name': 'last', 'Middle...
  numbermap = {'Business Fax': 'fax', 'Business Phone': 'office'...
  _reformat_name_func = lambda self, entry: entry, _reformat_nam...
  _preview_format_names_func = _preview_format_name_none, _previ...

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, id, title, style=536877632)
(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)

UpdateData(*args, **kwargs)

source code 

Actually update the preview data

Decorators:
  • @guihelper.BusyWrapper

Class Variable Details [hide private]

possiblecolumns

Value:
['<ignore>',
 'First Name',
 'Last Name',
 'Middle Name',
 'Name',
 'Nickname',
 'Email Address',
 'Web Page',
...

bp_columns

Value:
['names_title',
 'names_first',
 'names_middle',
 'names_last',
 'names_full',
 'names_nickname',
 'addresses_type',
 'addresses_company',
...

filternamecolumns

Value:
['First Name', 'Last Name', 'Middle Name', 'Name', 'Nickname']

filternumbercolumns

Value:
['Home Phone',
 'Home Fax',
 'Mobile Phone',
 'Business Phone',
 'Business Fax',
 'Pager',
 'Fax',
 'Phone']

filterhomeaddresscolumns

Value:
['Home Street',
 'Home City',
 'Home Postal Code',
 'Home State',
 'Home Country/Region']

filterbusinessaddresscolumns

Value:
['Business Street',
 'Business City',
 'Business Postal Code',
 'Business State',
 'Business Country/Region']

filteraddresscolumns

Value:
['Home Street',
 'Home City',
 'Home Postal Code',
 'Home State',
 'Home Country/Region',
 'Business Street',
 'Business City',
 'Business Postal Code',
...

addressmap

Value:
{'City': 'city',
 'Country/Region': 'country',
 'Postal Code': 'postalcode',
 'State': 'state',
 'Street': 'street'}

namemap

Value:
{'First Name': 'first',
 'Last Name': 'last',
 'Middle Name': 'middle',
 'Name': 'full',
 'Nickname': 'nickname'}

numbermap

Value:
{'Business Fax': 'fax',
 'Business Phone': 'office',
 'Fax': 'fax',
 'Home Fax': 'fax',
 'Home Phone': 'home',
 'Mobile Phone': 'cell',
 'Pager': 'pager'}

_reformat_name_func

Value:
lambda self, entry: entry, _reformat_name_firstmiddlelast, _reformat_n\
ame_lastfirtsmiddle

_preview_format_names_func

Value:
_preview_format_name_none, _preview_format_name_firstmiddlelast, _prev\
iew_format_name_lastfirtmiddle