[Q]pmw.selectiondialog

James Logajan JamesL at Lugoj.Com
Wed Jul 25 23:42:18 EDT 2001


Seung-won Hwang wrote:
> I'm looking for a widget just like selectiondialog but allows multiple
> selection.. Is there any widget doing the functionality I'm looking for? I'd
> appreciate your answer very much.

You mean select multiple rows? The Pmw SelectionDialog widget can be made to
support this. You need to be able to get access to the ListBox widget inside
it and set the configuration variable selectmode to MULTIPLE. Something
like:

>>> from Tkinter import *
>>> import Pmw
>>> root = Tk()
>>> s = Pmw.SelectionDialog(root)
>>> slist = s.component("scrolledlist")
>>> slist.setlist(["a1", "b2", "c3"])
>>> slist.configure(listbox_selectmode = MULTIPLE)



More information about the Python-list mailing list