Re: Tkinter "Expected boolean value"

From: Mike Abel (Ax10_at_gmx.de)
Date: 11/30/03


Date: Sun, 30 Nov 2003 08:10:49 +0100

Grzegorz Dostatni <grzegorz@ee.ualberta.ca> wrote:

> File "/usr/lib/python2.3/lib-tk/Tkinter.py", line 2310, in selection_present
> return self.tk.getboolean(
> TclError: expected boolean value but got ""

I guess: Tcl needs a boolean value and gets an empty string?

Try to look in this direction.

Mike



Relevant Pages

  • Re: How optimized ar eif-statements in JS
    ... doThatThing; ... non-zero numbers, non-empty strings, and boolean true. ... be equal to the empty string primitive. ... includes at least one implicit type-conversion to boolean anyway). ...
    (comp.lang.javascript)
  • Re: strange return value
    ... the fact that it's returning an actual empty string is ... but normal behavior for Perl's idea of a boolean. ... "Reply" at the bottom of the article headers. ...
    (comp.lang.perl.misc)
  • Re: So whats null then if its not nothing?
    ... > Hi Mike, ... > Why do you view an empty string as being the same as null? ... It is unless you accept the erroneous definition of NULL as UNKNOWN. ...
    (comp.databases.theory)
  • Re: What does "if(!variable)" check?
    ... Throws a reference error if the EXPRESSION resolves to a property of ... convert the EXPRESSION to a boolean and then return the inverse. ... empty string -> false ...
    (comp.lang.javascript)
  • Re: So whats null then if its not nothing?
    ... Does SQL's definition of null (unknown) include the null ... Just can't get my head 'round that. ... >> be compared with an empty string to see if it's null or not. ... > Hi Mike, ...
    (comp.databases.theory)