Remove listbox try out script.

This commit is contained in:
Simon Forman 2020-05-10 08:38:37 -07:00
parent a3e49a75f0
commit d280649be3
1 changed files with 0 additions and 21 deletions

View File

@ -1,21 +0,0 @@
from Tkinter import Tk, mainloop, BOTH
from joy.gui.controllerlistbox import ControllerListbox
class StackListbox(ControllerListbox):
def _update(self):
self.delete(0, 'end')
self.insert(0, *self.stack)
def dnd_commit(self, source, event):
ControllerListbox.dnd_commit(self, source, event)
self._update()
T = Tk()
T.title("Hello there.")
stack = [1, 2, 3]
lb = FooListbox(T, items=stack)
lb.pack(expand=True, fill=BOTH)
lb._update()