'Generate an event SEQUENCE. Additional
keyword arguments specify parameter of the event
(e.g. x, y, rootx, rooty).'

def event_generate(self, sequence, **kw):

    args = ('event', 'generate', self._w, sequence)
    for (k, v) in kw.items():
        args = (args + (('-%s' % k), str(v)))
    self.tk.call(args)
