wxPython: need return value from wxFrame
Mirko Koenig
koenig at v-i-t.de
Fri Aug 22 15:27:13 EDT 2003
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
More information about the Python-list
mailing list