Lines Matching +full:fast +full:- +full:glob
2 # - popup menu
3 # - support partial or total redisplay
4 # - key bindings (instead of quick-n-dirty bindings on Canvas):
5 # - up/down arrow keys to move focus around
6 # - ditto for page up/down, home/end
7 # - left/right arrows to expand/collapse & move out/in
8 # - more doc strings
9 # - add icons for "file", "module", "class", "method"; better "python" icon
10 # - callback for selection???
11 # - multiple-item selection
12 # - tooltips
13 # - redo geometry without magic numbers
14 # - keep track of object ids to allow more careful cleaning
15 # - optimize tree redraw after expand of subnode
40 import glob
41 list = glob.glob(os.path.join(glob.escape(icondir), "*.gif"))
62 For wheel up, event.delta = 120*n on Windows, -1*n on darwin,
63 where n can be > 1 if one scrolls fast. Flicking the wheel
68 X-11 sends Control-Button-4,5 events instead.
78 lines = -5 if up[event.type] else 5
165 top = self.y - 2
167 height = bottom - top
175 fraction = top + height - visible_height
183 return self.children[-1].lastvisiblechild()
201 # XXX This hard-codes too many geometry constants!
235 self.canvas.tag_bind(id, "<Double-1>", lambda x: None)
253 self.canvas.tag_bind(id, "<Double-1>", self.flip)
256 textx = self.x+20-1
257 texty = self.y-4
263 self.canvas.tag_bind(id, "<Double-1>", self.flip)
286 self.label.bind("<Double-1>", self.flip)
288 self.label.bind("<Button-4>", lambda e: wheel_event(e, self.canvas))
289 self.label.bind("<Button-5>", lambda e: wheel_event(e, self.canvas))
388 """Called on a double-click on the item."""
395 """Example TreeItem subclass -- browse the file system."""
458 self.canvas.bind("<Key-Prior>", self.page_up)
459 self.canvas.bind("<Key-Next>", self.page_down)
460 self.canvas.bind("<Key-Up>", self.unit_up)
461 self.canvas.bind("<Key-Down>", self.unit_down)
463 self.canvas.bind("<Button-4>", wheel_event)
464 self.canvas.bind("<Button-5>", wheel_event)
466 self.canvas.bind("<Alt-Key-2>", self.zoom_height)
469 self.canvas.yview_scroll(-1, "page")
475 self.canvas.yview_scroll(-1, "unit")