On button click open wxpython TextEntryDialog and get multiple input from user

I want to open a TextEntryDialog, when user clicks the button. So if i have
a button in the parent frame which i am going to bind this way:

      self.Bind(wx.EVT_BUTTON, self.OnAddNew, self.add_new_btn)

Now i have to open a TextEntryDialog when user clicks the button add_new. I
want to make textentrydialog somewthing like this Python, Using wxPython to
get multiple input from user

How can i do that? Do i need to just paste that code in
          def OnAddNew(self, event):

···

--
View this message in context: http://wxpython-users.1045709.n5.nabble.com/On-button-click-open-wxpython-TextEntryDialog-and-get-multiple-input-from-user-tp5727362.html
Sent from the wxPython-users mailing list archive at Nabble.com.