Package smartcard :: Package wx :: Module CardAndReaderTreePanel :: Class ReaderTreeCtrl
[hide private]
[frames] | no frames]

Class ReaderTreeCtrl

source code


The ReaderTreeCtrl monitors inserted cards and readers and notifies the application client dialog of any card activation.

Instance Methods [hide private]
EvtHandler
__init__(self, parent, ID=103, pos=wx.Point(-1, -1), size=wx.Size(-1, -1), style=0, clientpanel=None)
Constructor.
source code
 
AddATR(self, readernode, atr)
Add an ATR to a reader node.
source code
 
GetATR(self, reader)
Return the ATR of the card inserted into the reader.
source code
 
OnAddCards(self, addedcards)
Called when a card is inserted.
source code
 
OnAddReaders(self, addedreaders)
Called when a reader is inserted.
source code
 
OnRemoveCards(self, removedcards)
Called when a card is removed.
source code
 
OnRemoveReaders(self, removedreaders)
Called when a reader is removed.
source code

Inherited from BaseCardTreeCtrl: Repaint

Inherited from wx._controls.TreeCtrl: AddRoot, AppendItem, AssignImageList, AssignStateImageList, ClearFocusedItem, Collapse, CollapseAll, CollapseAllChildren, CollapseAndReset, Create, Delete, DeleteAllItems, DeleteChildren, EditLabel, EnsureVisible, Expand, ExpandAll, ExpandAllChildren, GetBoundingRect, GetChildrenCount, GetCount, GetEditControl, GetFirstChild, GetFirstVisibleItem, GetFocusedItem, GetImageList, GetIndent, GetItemBackgroundColour, GetItemData, GetItemFont, GetItemImage, GetItemParent, GetItemPyData, GetItemState, GetItemText, GetItemTextColour, GetLastChild, GetNextChild, GetNextSibling, GetNextVisible, GetPrevSibling, GetPrevVisible, GetPyData, GetQuickBestSize, GetRootItem, GetSelection, GetSelections, GetSpacing, GetStateImageList, HitTest, InsertItem, InsertItemBefore, IsBold, IsEmpty, IsExpanded, IsSelected, IsVisible, ItemHasChildren, PrependItem, ScrollTo, SelectChildren, SelectItem, SetFocusedItem, SetImageList, SetIndent, SetItemBackgroundColour, SetItemBold, SetItemData, SetItemDropHighlight, SetItemFont, SetItemHasChildren, SetItemImage, SetItemPyData, SetItemState, SetItemText, SetItemTextColour, SetPyData, SetQuickBestSize, SetSpacing, SetStateImageList, SortChildren, Toggle, ToggleItemSelection, Unselect, UnselectAll, UnselectItem, __repr__

Inherited from wx._controls.TreeCtrl (private): _setCallbackInfo

Inherited from wx._core.Control: Command, GetAlignment, GetLabelText, SetLabelMarkup, SetLabelText

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

Inherited from wx._core.EvtHandler: AddPendingEvent, Bind, Connect, DeletePendingEvents, Disconnect, GetEvtHandlerEnabled, GetNextHandler, GetPreviousHandler, IsUnlinked, ProcessEvent, ProcessEventLocally, ProcessPendingEvents, QueueEvent, SafelyProcessEvent, SetEvtHandlerEnabled, SetNextHandler, SetPreviousHandler, Unbind, Unlink

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

Inherited from wx._core.Object: GetClassName, IsSameAs

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

Static Methods [hide private]

Inherited from wx._controls.TreeCtrl: GetClassDefaultAttributes

Inherited from wx._core.Control: Ellipsize, EscapeMnemonics, FindAccelIndex, GetCompositeControlsDefaultAttributes, RemoveMnemonics

Inherited from wx._core.Window: FindFocus, GetCapture, NewControlId, ReleaseControlId, UnreserveControlId

Properties [hide private]

Inherited from wx._controls.TreeCtrl: Count, EditControl, FirstVisibleItem, ImageList, Indent, QuickBestSize, RootItem, Selection, Selections, Spacing, StateImageList, thisown

Inherited from wx._core.Control: Alignment, LabelText

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, MaxClientSize, MaxHeight, MaxSize, MaxWidth, MinClientSize, MinHeight, MinSize, MinWidth, Name, Parent, Position, Rect, ScreenPosition, ScreenRect, Shown, Size, Sizer, ThemeEnabled, ToolTip, ToolTipString, 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=103, pos=wx.Point(-1, -1), size=wx.Size(-1, -1), style=0, clientpanel=None)
(Constructor)

source code 

Constructor. Create a reader tree control.

Returns: EvtHandler
Overrides: object.__init__

OnAddCards(self, addedcards)

source code 

Called when a card is inserted. Adds the smart card child to the reader node.

OnAddReaders(self, addedreaders)

source code 

Called when a reader is inserted. Adds the smart card reader to the smartcard readers tree.

OnRemoveCards(self, removedcards)

source code 

Called when a card is removed. Removes the card from the tree.

OnRemoveReaders(self, removedreaders)

source code 

Called when a reader is removed. Removes the reader from the smartcard readers tree.