[wxPython-users] return values from multiline dialog ?
Gre7g Luterman
gre7g.luterman at gmail.com
Tue Oct 2 08:36:09 PDT 2007
You could replace the ShowModal function. For example, if your dialog had
controls A, B, and C:
class MyDialog(wx.Dialog):
def ShowModal(self, A, B, C):
self.A.SetValue(A)
self.B.SetValue(B)
self.C.SetValue(C)
if wx.Dialog.ShowModal(self) =3D=3D wx.ID_OK:
return self.A.GetValue(), self.B.GetValue(), self.C.GetValue()
else:
return A, B, C # (Cancel or close)
On 10/1/07, Stef Mientki <s.mientki at ru.nl> wrote:
>
> hello,
>
> I'm creating a multi value dialog box ( a number of strings the user can
> edit),
> I read that the values can be returned by a validator,
> but isn't there an easier way if I don't want to validate the user
> entered values ?
>
> thanks,
> Stef Mientki
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: wxPython-users-unsubscribe at lists.wxwidgets.org
> For additional commands, e-mail: wxPython-users-help at lists.wxwidgets.org
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.wxwidgets.org/pipermail/wxpython-users/attachments/200710=
02/ba2bf495/attachment.htm
More information about the wxpython-users
mailing list