Lines Matching refs:widget
9 widget = event.widget
10 widget.delete(0, INSERT)
25 widget = Toplevel(master, class_=class_)
27 widget = Toplevel(master)
29 widget.title(title)
30 widget.iconname(title)
31 return widget
33 def set_transient(widget, master, relx=0.5, rely=0.3, expose=1): argument
41 widget.withdraw() # Remain invisible while we figure out the geometry
42 widget.transient(master)
43 widget.update_idletasks() # Actualize geometry information
53 w_width = widget.winfo_reqwidth()
54 w_height = widget.winfo_reqheight()
57 widget.geometry("+%d+%d" % (x, y))
59 widget.deiconify() # Become visible at the desired location
60 return widget
114 def set_scroll_commands(widget, hbar, vbar): argument
123 widget['yscrollcommand'] = (vbar, 'set')
124 vbar['command'] = (widget, 'yview')
127 widget['xscrollcommand'] = (hbar, 'set')
128 hbar['command'] = (widget, 'xview')
130 widget.vbar = vbar
131 widget.hbar = hbar
153 widget = Text(frame, wrap=wrap, name="text")
154 if width: widget.config(width=width)
155 if height: widget.config(height=height)
156 widget.pack(expand=expand, fill=fill, side=LEFT)
158 set_scroll_commands(widget, hbar, vbar)
160 return widget, frame
175 widget = Listbox(frame, name="listbox")
176 if width: widget.config(width=width)
177 if height: widget.config(height=height)
178 widget.pack(expand=expand, fill=fill, side=LEFT)
180 set_scroll_commands(widget, hbar, vbar)
182 return widget, frame
199 widget = Canvas(frame, scrollregion=(0, 0, width, height), name="canvas")
200 if width: widget.config(width=width)
201 if height: widget.config(height=height)
202 widget.pack(expand=expand, fill=fill, side=LEFT)
204 set_scroll_commands(widget, hbar, vbar)
206 return widget, frame