Wxpython dialog box how to press the OK button dialog box does not close?

what I want to do is to enter a set of data in the TextCtrl space in the pop-up dialog box.
check whether to enter after clicking the OK button (ShowModal () = = wx.ID_OK):
if TextCtrl is empty, the dialog box does not close, waiting for user input;
if TextCtrl is not empty, the dialog box closes.

how should the above functions be implemented?
Thank you!

Jun.29,2022
  • How python outputs tracks to wxpython volume posts

    wxpython+python-vlc,,,,python-vlc,,,python-vlc,python-vlc -sharp -*- coding: utf-8 -*- -sharp-sharp-sharp-sharp-sharp-sharp-sharp-sharp-sharp-sharp-sharp-sharp-sharp-sharp-sharp-sharp-sharp-sharp-sharp-sharp-sharp-sharp-sharp-sharp-sharp-sharp-sharp-sh...

    Mar.28,2021
Menu