>if txtSearch.get_text() == "": > print "The entry is empty"
>This didn't work. So I thought, maybe I need to reference self and tried: >if self.txtSearch.get_text() == "": > print "The entry is empty" >Neither worked. What am I doing wrong? Please post a more significant code sample as I have no idea from this, but at least one of those should have given you an error. Always include the full error (including stacktrace) you get from Python. Use copy/paste and do not try and retype or rephrase it. Do not attach a file as many users of this list do not receive attachments. Welcome to the list! Ramit Ramit Prasad | JPMorgan Chase Investment Bank | Currencies Technology 712 Main Street | Houston, TX 77002 work phone: 713 - 216 - 5423 -- This email is confidential and subject to important disclaimers and conditions including on offers for the purchase or sale of securities, accuracy and completeness of information, viruses, confidentiality, legal privilege, and legal entity disclaimers, available at http://www.jpmorgan.com/pages/disclosures/email. _______________________________________________ Tutor maillist - Tutor@python.org To unsubscribe or change subscription options: http://mail.python.org/mailman/listinfo/tutor