frame opens a frame (pass data from frame to frame)

Hello all.
  i'm making a program using wxGlade. I've defined a frame that asks for a
client and employer. I've set it up that the main frame has a static text and
a button. Clicking the button opens another frame which opens a kirbybase
database, gets every client's last name and populates a listbox. Click the
name in the listbox, and see all their details on the screen. I'd like to
then close this (with an accept or cancel button) and pass the info back to my
main frame. have it just list like the name in the static text and save the
rest of the info in a variable for later use. Same with the employer.

  I don't know how to pass back the info to the originating frame when hitting
CANCEL or ACCEPT within the second frame. Should I have used something other
than a frame with a panel, appx. 8 fields (text labels and text controls to
hold the data) and a listbox?

Thanks in advance for your help!

Dave