Lines Matching refs:listbox
15 self.listbox = listbox = Listbox(frame, exportselection=0,
18 listbox.configure(options)
19 listbox.pack(expand=1, fill="both")
21 vbar["command"] = listbox.yview
22 listbox["yscrollcommand"] = vbar.set
24 listbox.bind("<ButtonRelease-1>", self.click_event)
25 listbox.bind("<Double-ButtonRelease-1>", self.double_click_event)
27 listbox.bind("<ButtonPress-2>", self.popup_event)
28 listbox.bind("<Control-Button-1>", self.popup_event)
30 listbox.bind("<ButtonPress-3>", self.popup_event)
31 listbox.bind("<Key-Up>", self.up_event)
32 listbox.bind("<Key-Down>", self.down_event)
40 self.listbox.delete(0, "end")
42 self.listbox.insert("end", self.default)
46 self.listbox.delete(0, "end")
48 self.listbox.insert("end", str(item))
51 return self.listbox.get(index)
54 self.listbox.activate("@%d,%d" % (event.x, event.y))
55 index = self.listbox.index("active")
61 index = self.listbox.index("active")
72 self.listbox.activate("@%d,%d" % (event.x, event.y))
73 index = self.listbox.index("active")
78 menu = Menu(self.listbox, tearoff=0)
83 index = self.listbox.index("active")
84 if self.listbox.selection_includes(index):
87 index = self.listbox.size() - 1
89 self.listbox.bell()
96 index = self.listbox.index("active")
97 if self.listbox.selection_includes(index):
101 if index >= self.listbox.size():
102 self.listbox.bell()
109 self.listbox.focus_set()
110 self.listbox.activate(index)
111 self.listbox.selection_clear(0, "end")
112 self.listbox.selection_set(index)
113 self.listbox.see(index)