How to get value on button click

Close button click handler

def OnOKButtonClick(self, sender, e):
    if self.m_textbox.Text == "":
        self.Close(False)
    else:
        self.Close(True)

I need dialog don’t closed when i click button and get value is True or False.
Please help me.

If you don’t want the dialog to close, don’t call self.Close.

Or am I not understanding what you want?

– Dale

Don’t call self.Close so I can’t get value in self.m_textbox.Text. I want to get value in self.m_textbox.Text but don’t closed dialog same to Apply button.