]> granicus.if.org Git - python/commit
Fixed several bugs reported by Greg McFarmane:
authorGuido van Rossum <guido@python.org>
Mon, 29 Dec 1997 19:59:33 +0000 (19:59 +0000)
committerGuido van Rossum <guido@python.org>
Mon, 29 Dec 1997 19:59:33 +0000 (19:59 +0000)
commit9fd41e363b4780ae9af475f9c23c0a3cf69d70ad
treee8da5bb03fce16f9385a95657503e90006949ab9
parent23e21e7cf32aa117ebe9938c50c5a448e3000cb2
Fixed several bugs reported by Greg McFarmane:

 *  The invoke methods of the three Tkinter widgets Button,
    Checkbutton and Radiobutton should return the value returned by
    the callback, (like the Menu widget does):

def invoke(self):
    return self.tk.call(self._w, 'invoke')

 *  The select_from method of the Canvas widget should use 'from', not
    'set':

def select_from(self, tagOrId, index):
    self.tk.call(self._w, 'select', 'from', tagOrId, index)

    Currently, if you use select_from, you get the error message:
 'TclError: bad select option "set": must be adjust, clear, from, item, or to'

 *  The 'entrycget' and 'type' methods of the Tk menu widget are
    missing from Tkinter.

 *  There is a bug in grid_columnconfigure and grid_rowconfigure.  For
    example, this should return the current value of the 'minsize'
    option for column 0:

f.grid_columnconfigure(0, 'minsize')

    Instead it returns the same as:

f.grid_columnconfigure(0)

    I suggest that the hint given in the comment in the
    Tkinter.Misc.configure method should be followed - "ought to
    generalize this so tag_config etc.  can use it".  Repeating the
    same configure code several times in Tkinter is inviting errors.
    [I did not follow this advice --G]

 *  The grid_slaves method should handle options.  Currently, to pass
    options to the grid_slaves method, you have to do something like:

grid_slaves('-row', 1)
Lib/lib-tk/Tkinter.py