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
MySQL Query : SELECT * FROM `codeshelper`.`v9_news` WHERE status=99 AND catid='6' ORDER BY rand() LIMIT 5
MySQL Error : Disk full (/tmp/#sql-temptable-64f5-1b2b8cb-dff1.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
MySQL Errno : 1021
Message : Disk full (/tmp/#sql-temptable-64f5-1b2b8cb-dff1.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
Need Help?