Lines Matching refs:args
96 def _format_elemcreate(etype, script=False, *args, **kw):
97 """Formats args and kw according to the given element factory etype."""
103 iname = args[0]
104 # next args, if any, are statespec/value pairs which is almost
106 imagespec = _join(_mapdict_values(args[1:]))
114 class_name, part_id = args[:2]
115 statemap = _join(_mapdict_values(args[2:]))
123 spec = args[0] # theme name
124 if len(args) > 1: # elementfrom specified
125 opts = (_format_optvalue(args[1], script),)
210 # find where args end, and where kwargs start
272 def _val_or_dict(tk, options, *args):
273 """Format options then call Tk command with args and options and return
281 res = tk.call(*(args + options))
435 def element_create(self, elementname, etype, *args, **kw):
437 spec, opts = _format_elemcreate(etype, False, *args, **kw)
538 def instate(self, statespec, callback=None, *args, **kw):
543 then it will be invoked with *args, **kw if the widget state
548 return callback(*args, **kw)
1536 def _adjust(self, *args):