Hi Everyone,
I'm learning pyGtk and am developing my first application. I'm trying to
check if a GtkEntry is empty and I'm using the following code:
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?
Thanks1
Anthony
_______________________________________________
Tutor maillist - [email protected]
To unsubscribe or change subscription options:
http://mail.python.org/mailman/listinfo/tutor