Disabling a Pmw.ScrolledListBox doesn't work

Help
2007-04-10
2013-02-21
  • Gaurav Arora
    Gaurav Arora
    2007-04-10

    Hi,

    I am trying to disable a Pmw.ScrolledListBox in the following manner...
    self.slbDataStructureList.component('listbox').config(state='disabled')

    This works fine on Windows but I get the following error on Unix...
    _tkinter.TclError: unknown option "-state"

    The version of Tcl/Tk on Windows is 8.4 and it is 8.2 on Unix. Could this be a cause of the problem?

    Regards,
    Gaurav

     
    • Greg McFarlane
      Greg McFarlane
      2007-04-11

      Hi Gaurav,

      The listbox state option works OK for Tk version 8.4 on Unix.  I suggest you upgrade.

      Greg