[patch] TK backend: make ListBox selection independent between several instances
Sascha Silbe <[email protected]> Tue, 26 Aug 2003 14:39:37 +0200
| Newsgroups | gmane.comp.python.anygui.devel |
|---|---|
| Message-ID | <[email protected]> |
Hi! TK backend: Add exportselection=0 option to the ListBox constructor, so selecting entries in multiple, independent listboxes is possible. CU/Lnx Sascha -- Registered Linux User #77587 (http://counter.li.org/) bomb terrorist afghanistan PGP encrypt CIA FBI BND MAD StaSi anschlag strike sex pussy xxx kill bj hitler Gates MS Windows ZV ZDV
anygui-tk-listbox-selection.patch
(text/plain, 478 B)
--- orig/lib/anygui/backends/tkgui.py
+++ mod/lib/anygui/backends/tkgui.py
@@ -439,7 +439,9 @@
self.items = []
def widgetFactory(self, *args, **kws):
- widget=Tkinter.Listbox(*args, **kws)
+ options = kws.copy()
+ options['exportselection'] = 0
+ widget=Tkinter.Listbox(*args, **options)
widget.bind('<ButtonRelease-1>', self.clickHandler)
widget.bind('<KeyRelease-space>', self.clickHandler)
return widget
signature.asc
(application/pgp-signature, 189 B)
-----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.2 (GNU/Linux) iD8DBQE/S1UJFu2Z2HTlz4cRAtCqAKDiil5JCtrQT0s73AxswdQCjBYaQQCeMU9d X32c/cUgCg0EMaUe8c1ldjA= =wlha -----END PGP SIGNATURE-----