Package pyjamas :: Package ui :: Module Event
[hide private]
[frames] | no frames]

Module Event

source code

This module contains flags and integer values used by the event system.

Functions [hide private]
 
_create_eventmap() source code
 
init() source code
Variables [hide private]
  BUTTON_LEFT = 1
  BUTTON_MIDDLE = 4
  BUTTON_RIGHT = 2
  ONBLUR = 0x01000
  ONCHANGE = 0x00400
  ONCLICK = 0x00001
  ONCONTEXTMENU = 0x20000
  ONDBLCLICK = 0x00002
  ONERROR = 0x10000
  ONFOCUS = 0x00800
  ONKEYDOWN = 0x00080
  ONKEYPRESS = 0x00100
  ONKEYUP = 0x00200
  ONLOAD = 0x08000
  ONLOSECAPTURE = 0x02000
  ONMOUSEDOWN = 0x00004
  ONMOUSEMOVE = 0x00040
  ONMOUSEOUT = 0x00020
  ONMOUSEOVER = 0x00010
  ONMOUSEUP = 0x00008
  ONMOUSEWHEEL = 0x40000
  ONSCROLL = 0x04000
  ONINPUT = 0x80000
  DRAGEVENTS = 0x100000
  DROPEVENTS = 0x200000
  FOCUSEVENTS = 0x01800
  KEYEVENTS = 0x00380
  MOUSEEVENTS = 0x0007C
  eventbits = {0x000001:("click", ["click"]), 0x000002:("dblclic...
  eventmap = {"mousewheel": 0x040000, "mousescroll": 0x040000, "...
Variables Details [hide private]

eventbits

Value:
{0x000001:("click", ["click"]), 0x000002:("dblclick", ["dblclick"]), 0\
x000004:("mousedown", ["mousedown"]), 0x000008:("mouseup", ["mouseup"]\
), 0x000010:("mouseover", ["mouseover"]), 0x000020:("mouseout", ["mous\
eout"]), 0x000040:("mousemove", ["mousemove"]), 0x000080:("keydown", [\
"keydown"]), 0x000100:("keypress", ["keypress"]), 0x000200:("keyup", [\
"keyup"]), 0x000400:("change", ["change"]), 0x000800:("focus", ["focus\
"]), 0x001000:("blur", ["blur"]), 0x002000:("losecapture", ["losecaptu\
re"]), 0x004000:("scroll", ["scroll"]), 0x008000:("load", ["load"]), 0\
...

eventmap

Value:
{"mousewheel": 0x040000, "mousescroll": 0x040000, "DOMMouseScroll": 0x\
040000, "input": 0x080000, "propertychange": 0x080000,}