How can i get the Txt Box Value from a Panle

Hi,
    I am having a class, In that Class Iam creating a wxFrame, in that frame, creating a panel, inside a Panel, i am creating a grid, Txt Box, Ok Buttton and Cance Button

Iam instaintiating that class in some other class....UI will get Invoked, in that UI, iamm entering some value in the text box, and then iam pressing OK button in the UI

After Pressing, i have to extract the value from a Text Box in the Driver Class(ie where iam instiantiating the UI)...

How can i solve the Problem

Regards
Bala

bala wrote:

Hi,
   I am having a class, In that Class Iam creating a wxFrame, in that frame, creating a panel, inside a Panel, i am creating a grid, Txt Box, Ok Buttton and Cance Button

Iam instaintiating that class in some other class....UI will get Invoked, in that UI, iamm entering some value in the text box, and then iam pressing OK button in the UI

After Pressing, i have to extract the value from a Text Box in the Driver Class(ie where iam instiantiating the UI)...

How can i solve the Problem

Regards
Bala

Use the GetValue() method on the wx.TextCtrl object.

eg. self.textEntry.GetValue()

Cheers,
Jonathan