Attached is the code for a simple dialog that takes an input name . As the name is being entered on each keystroke the name is checked for similar names using fuzzywuzzy partial matching. This process takes some time and prevents the next key entry.
Q1) How can I get the nameMatch routine to allow further key entry.
In the example code I have added a keyPress counter. The number of key presses is shown in the second textCtrl.
Q2) Why is the display of the keyPress counter not immediate even though it is called before the nameMatch routine
CHANDRA KUSUMA SCHOOL, Perumahan Cemara Asri, Blok O, Jl. Cemara, Deliserdang 20371, Medan, North Sumatra, Indonesia
Phone : 061 661 6765 or 061 661 6779 Fax : 061 661 3280
FILE ATTACHMENTS:
Please be aware that The Chandra Kusuma School uses OpenOffice.org. Therefore any attachments may be in OpenOffice.org formats. You can download OpenOffice.org free from OpenOffice.org. It is open-source and the files it creates are not only smaller than the equivalent MS Office file, but also considerably less likely to contain malicious code. Wherever possible Chandra Kusuma School encourages the use of Open-Source software. We believe that in the spirit of education, students should leave school not only with an education, but also unrestricted access to the tools they have learnt to use. For more information on open source software visit the Free Software Foundation at www.fsf.org
DISCLAIMER:
This email is intended solely for the addressee. It may contain private and confidential information. If you are not the intended addressee, please take no action based on it nor show a copy to anyone. In this case, please reply to this email to highlight the error, or contact info@ChandraKusuma.com
Opinions and information in this email that do not relate to the official business of Chandra Kusuma School shall be understood as neither given nor endorsed by our school.
Chandra Kusuma School has taken steps to ensure that this email and any attachments are virus-free, but we do advise that the recipient should check that the email and its attachments are actually virus free. This is in keeping with good computing practice. We accept no responsibility for any damage or loss of data that may result in opening content sent from Chandra Kusuma School.
matchName.py (1.98 KB)