Lines Matching refs:listbox
18 self.listbox = listbox = Listbox(frame, exportselection=0,
21 listbox.configure(options)
22 listbox.pack(expand=1, fill="both")
24 vbar["command"] = listbox.yview
25 listbox["yscrollcommand"] = vbar.set
27 listbox.bind("<ButtonRelease-1>", self.click_event)
28 listbox.bind("<Double-ButtonRelease-1>", self.double_click_event)
30 listbox.bind("<ButtonPress-2>", self.popup_event)
31 listbox.bind("<Control-Button-1>", self.popup_event)
33 listbox.bind("<ButtonPress-3>", self.popup_event)
34 listbox.bind("<Key-Up>", self.up_event)
35 listbox.bind("<Key-Down>", self.down_event)
43 self.listbox.delete(0, "end")
45 self.listbox.insert("end", self.default)
49 self.listbox.delete(0, "end")
51 self.listbox.insert("end", str(item))
54 return self.listbox.get(index)
57 self.listbox.activate("@%d,%d" % (event.x, event.y))
58 index = self.listbox.index("active")
64 index = self.listbox.index("active")
75 self.listbox.activate("@%d,%d" % (event.x, event.y))
76 index = self.listbox.index("active")
82 menu = Menu(self.listbox, tearoff=0)
87 index = self.listbox.index("active")
88 if self.listbox.selection_includes(index):
91 index = self.listbox.size() - 1
93 self.listbox.bell()
100 index = self.listbox.index("active")
101 if self.listbox.selection_includes(index):
105 if index >= self.listbox.size():
106 self.listbox.bell()
113 self.listbox.focus_set()
114 self.listbox.activate(index)
115 self.listbox.selection_clear(0, "end")
116 self.listbox.selection_set(index)
117 self.listbox.see(index)