wxPython: need return value from wxFrame

Bob Parnes rparnes at megalink.net
Fri Aug 22 18:31:29 EDT 2003


On Fri, 22 Aug 2003 21:27:13 +0200, Mirko Koenig <koenig at v-i-t.de> wrote:
> On Fri, 22 Aug 2003 00:28:23 +0200, Cliff Wells wrote:
> 
>> On Thu, 2003-08-21 at 15:17, Mirko Koenig wrote:
>>> I have a frame where you can select/add/delte etc a customer address.
>>> It is included in an wxApp to have a stand alone customer addressbook.
>>> 
>>> Now i wrote a invoice application. I added a button to add a address to
>>> the invoice. I want the customer addressbook to be open by clicking on
>>> that button. No problem. So far so good.
>>> 
>>> But i want the addressbook frame to return the selected address as a
>>> tuple, list or dict. I don't have any idea how to do that.
>>> 
>>> I can show() the frame from within the invoice code but show doesn't
>>> return a value.
>> 
>> Use a wxDialog instead.
>> 
> 
> But how to return a list or tuple. All i can see is that a dialog returns
> a int value
> 
> Mirko Koenig

The dialog returns an integer depending upon which button the user
presses to close it. But you can still access the setting in a widget
after the dialog closes.

-- 
Bob Parnes
rparnes at megalink.net




More information about the Python-list mailing list