smartcard :: wx :: SimpleSCardApp :: SimpleSCardApp :: Class SimpleSCardApp
[hide private]
[frames] | no frames]

Class SimpleSCardApp

source code


The SimpleSCardApp class represents the smart card application. SimpleSCardApp is a subclass of wx.App.

Nested Classes [hide private]

Inherited from wx._core.App: outputWindowClass

Instance Methods [hide private]
PyApp
__init__(self, appname='', apppanel=None, appstyle=1, appicon=None, pos=(-1, -1), size=(-1, -1))
Constructor for simple smart card application.
source code
 
OnInit(self)
Create and display application frame.
source code

Inherited from wx._core.App: Destroy, MainLoop, OnPreInit, RedirectStdio, RestoreStdio, SetOutputWindowAttributes, SetTopWindow, __del__

Inherited from wx._core.PyApp: Dispatch, Exit, ExitMainLoop, FilterEvent, GetAppName, GetAssertMode, GetCallFilterEvent, GetClassName, GetExitOnFrameDelete, GetLayoutDirection, GetPrintMode, GetTopWindow, GetTraits, GetUseBestVisual, GetVendorName, IsActive, MacHideApp, MacRequestUserAttention, Pending, ProcessIdle, ProcessPendingEvents, SendIdleEvents, SetAppName, SetAssertMode, SetCallFilterEvent, SetClassName, SetExitOnFrameDelete, SetPrintMode, SetUseBestVisual, SetVendorName, WakeUpIdle, Yield, __swig_destroy__

Inherited from wx._core.PyApp (private): _BootstrapApp, _setCallbackInfo

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

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

Inherited from wx._core.Object: IsSameAs, __repr__

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

Static Methods [hide private]

Inherited from wx._core.PyApp: GetComCtl32Version, GetMacAboutMenuItemId, GetMacExitMenuItemId, GetMacHelpMenuTitleName, GetMacPreferencesMenuItemId, GetMacSupportPCMenuShortcuts, IsDisplayAvailable, IsMainLoopRunning, SetMacAboutMenuItemId, SetMacExitMenuItemId, SetMacHelpMenuTitleName, SetMacPreferencesMenuItemId, SetMacSupportPCMenuShortcuts

Properties [hide private]

Inherited from wx._core.PyApp: Active, AppName, AssertMode, ClassName, ExitOnFrameDelete, LayoutDirection, PrintMode, TopWindow, Traits, UseBestVisual, VendorName, thisown

Inherited from wx._core.EvtHandler: EvtHandlerEnabled, NextHandler, PreviousHandler

Inherited from object: __class__

Method Details [hide private]

__init__(self, appname='', apppanel=None, appstyle=1, appicon=None, pos=(-1, -1), size=(-1, -1))
(Constructor)

source code 
Constructor for simple smart card application.
appname: the application name
apppanel: the application panel to display in the application frame
appicon: the application icon file; the default is no icon
appstyle: a combination of the following styles (bitwise or |)
          TR_SMARTCARD: display a smartcard tree panel
          TR_READER: display a reader tree panel
          TB_SMARTCARD: display a smartcard toolbar
          TB_SMARTCARD: display a reader toolbar
          PANEL_APDUTRACER: display an APDU tracer panel
          default is TR_DEFAULT = TR_SMARTCARD
pos: the application position as a (x,y) tupple; default is (-1,-1)
size: the application window size as a (x,y) tuple; default is (-1,-1)

example:
app = SimpleSCardApp(
    appname = 'A simple smartcard application',
    apppanel = testpanel.MyPanel,
    appstyle = TR_READER | TR_SMARTCARD,
    appicon = 'resources\mysmartcard.ico')

Returns: PyApp
Overrides: object.__init__