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

Exercise 13.3d Account Balance Editor
 
Provides a graphical component for withdrawing and depositing into a Bank Account
 
Classes
-------
AccountBalanceEditor
    tkinter widget providing an entry box and two buttons for withdrawing or depositing to an account

 
Modules
       
Data.Account
tkinter

 
Classes
       
builtins.object
AccountBalanceEditor

 
class AccountBalanceEditor(builtins.object)
    AccountBalanceEditor(root, receiver)
 
Class representing a graphical account balance editor
 
Attributes
----------
receiver
    object to notify when an account balance in modified.
    Must support the `balance_changed()` method
frame
    the widget frame containing the component
 
  Methods defined here:
__init__(self, root, receiver)
Create a new `AccountBalanceEditor`
 
Parameters
----------
root :
    parent widget
receiver :
    object supporting the `balance_changed` method to be notified
    when a balance changes
 
Raises
------
AttributeError
    raised if receiver does not support `balance_changed`

Data descriptors defined here:
__dict__
dictionary for instance variables
__weakref__
list of weak references to the object
account
account : Account
    the account being edited
 
Raises
------
TypeError
    raised when attempting to set `account` to a type that is not a subclass of `Account.Account`