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

Exercise 13.3i Manage Long Term Account View
 
Provides a graphical component for managing a matured long-term savings account
 
Classes
-------
ManageLongTermAccountView
    Graphical component for managing a long term account. Designing to be
    located in a separate window

 
Modules
       
Data.Account
UI.GUI.AccountSelector
UI.GUI.AccountView
tkinter

 
Classes
       
builtins.object
ManageLongTermAccountView

 
class ManageLongTermAccountView(builtins.object)
    ManageLongTermAccountView(root, account, account_system)
 
Graphical widget for managing a long term account
 
Provides the user with a list to select their other accounts. The user
can then either reinvest the matured account or transfer the savings in
the account into another account
 
Attributes
----------
frame
    the frame holding the graphical component
 
  Methods defined here:
__init__(self, root, account, account_system)
Create a new `ManageLongTermAccountView`
 
Parameters
----------
root
    parent widget
account : Account.LongTermSavingsAccount
    The long term account being managed
account_system : AccountSystem.AccountSystem
    The account system storing the system accounts
got_selection(self, selection)
Handles the current selection being changed
 
Loads the newly selected transfer account into the view and
ensures the transfer button is enabled
 
Parameters
----------
selection : str
    account number for the selected transfer account
 
Returns
-------
None
populate_listbox(self, accounts)
Populate the selection list with the given accounts
 
Attributes
----------
accounts : list[Account.Account]
    list of accounts to populate the list with
 
Returns
-------
None

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