UI.GUI.BankAccountApplication
index
/home/flempriere/personal_projects/Languages/Python/BeginToCodeWithPython/03_UsefulPython/13_PythonAndGraphicalUserInterfaces/Exercises/03_GraphicalBankingApplication/UI/GUI/BankAccountApplication.py

Exercise 13.3h Bank Account Application
 
Provides an implementations for a graphics-based user interface to a Bank Account System
 
Classes
-------
BankAccountApplication
    Class wrapping a storage class in a graphics-based user interface layer.
    Assumes the storage class supports the `Data.Account.Account` interface
    for it's underlying items
 
See Also
--------
Data : Package defining storage and Account modules for a Bank

 
Modules
       
Data.Account
UI.GUI.AccountBalanceEditor
UI.GUI.AccountCreation
Data.AccountFactory
UI.GUI.AccountSelector
UI.GUI.AccountView
UI.GUI.ManageLongTermAccountView
tkinter

 
Classes
       
builtins.object
BankAccountApplication

 
class BankAccountApplication(builtins.object)
    BankAccountApplication(filename, storage_class)
 
Provides a graphical interface for a Bank Account System
 
  Methods defined here:
__init__(self, filename, storage_class)
Create a new `BanAccountApplication`
 
Parameters
----------
filename : str
    file to save the system in, the program will try to load
    from the file
storage_class : AccountSystem
    class to use for the underlying data storage. The data will
    first attempt to be loaded, otherwise a new instance is
    created
account_created(self, account)
Handles a new account being created
 
Stores the new account in the storage class and reloads the
list of accounts
 
Parameters
----------
account : Account.Account
    newly created account
 
Returns
-------
None
balance_changed(self)
Handles the selected account balance changing
 
Reloads the view to update the displayed balance
 
Returns
-------
None
got_selection(self, selection)
Handles the selection in the account list changing
 
This method removes the old account view, and then installs the
new one loading the selected account. If the account is a matured
long term account the button to manage a long term account is activated,
else it is disabled.
 
Parameters
----------
selection : str
    account number of the selected account
 
Returns
-------
None
 
Raises
------
TypeError
    Raised if there is matching View for the returned account
main_menu(self)
Display and run the program
 
Run the main program. Saves the changes on exit
 
Returns
-------
None

Data descriptors defined here:
__dict__
dictionary for instance variables
__weakref__
list of weak references to the object