June 2002
Beginner to intermediate
640 pages
14h 24m
English
The main window will have a list of names from the address book. As you select a name from the list, an AddressForm instance pops up in which you edit the Address instance corresponding to that name.
As a rule, code written to access data shouldn't be in the same module with code written to build GUIs, so first we have to break our code into separate modules:
AddressForm.py— holds the AWT version of AddressForm
Address7.py— holds the address data code
AddressMain.py— holds the main window of the code
AddressFormPane.py— holds the AWT panel version of AddressForm
The first step is creating a frame that acts as the main window and then adding a list to it. Then we pack the frame and ...
Read now
Unlock full access