send arg to dialog

I have a client app where the user has already logged on to a server app. I
need to open a dialog box and pass some bits of data for use in the dialog
(i.e. the user's ID). I don't want them to have to re-authenticate just to
use the dialog. I want to know all about them when they open the dialog.
I tried referencing a variable from the parent, but I couldn't get that to
work.

Python 2.2.3 wxPython 2.4.1.2 (NT & Linux)

How do I open a dialog box and pass it an argument / variable?
-or-
How do I reference bits of user data from the main program when they open a
dialog box?

Michael Welsh wrote:

Python 2.2.3 wxPython 2.4.1.2 (NT & Linux)

How do I open a dialog box and pass it an argument / variable?
-or-
How do I reference bits of user data from the main program when they open a dialog box?

Um, however you want. It really depends on your app. The simplest is to just pass a reference to the thing that holds the data you want to access to the constructor of the thing you want to access the data from.

ยทยทยท

--
Robin Dunn
Software Craftsman
http://wxPython.org Java give you jitters? Relax with wxPython!