Paul Rubin wrote: > John Salerno <[EMAIL PROTECTED]> writes: >> I just need some advice for how to structure >> the check of the empty string. > > How about > > return db_name or None > > since the empty string taken as a boolean is False.
But if the user doesn't enter any text, I don't want the method to return at all (even None). I need an error dialog to pop up and tell him to enter a value (or press Cancel). -- http://mail.python.org/mailman/listinfo/python-list