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

Source Code for Module pyjamas.ui.Event

 1  # Copyright 2006 James Tauber and contributors 
 2  # Copyright (C) 2009 Luke Kenneth Casson Leighton <lkcl@lkcl.net> 
 3  # 
 4  # Licensed under the Apache License, Version 2.0 (the "License"); 
 5  # you may not use this file except in compliance with the License. 
 6  # You may obtain a copy of the License at 
 7  # 
 8  #     http://www.apache.org/licenses/LICENSE-2.0 
 9  # 
10  # Unless required by applicable law or agreed to in writing, software 
11  # distributed under the License is distributed on an "AS IS" BASIS, 
12  # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 
13  # See the License for the specific language governing permissions and 
14  # limitations under the License. 
15   
16  """ 
17      This module contains flags and integer values used by the event system. 
18  """ 
19   
20  BUTTON_LEFT   = 1 
21  BUTTON_MIDDLE = 4 
22  BUTTON_RIGHT  = 2 
23   
24  ONBLUR        = 0x01000 
25  ONCHANGE      = 0x00400 
26  ONCLICK       = 0x00001 
27  ONCONTEXTMENU = 0x20000 
28  ONDBLCLICK    = 0x00002 
29  ONERROR       = 0x10000 
30  ONFOCUS       = 0x00800 
31  ONKEYDOWN     = 0x00080 
32  ONKEYPRESS    = 0x00100 
33  ONKEYUP       = 0x00200 
34  ONLOAD        = 0x08000 
35  ONLOSECAPTURE = 0x02000 
36  ONMOUSEDOWN   = 0x00004 
37  ONMOUSEMOVE   = 0x00040 
38  ONMOUSEOUT    = 0x00020 
39  ONMOUSEOVER   = 0x00010 
40  ONMOUSEUP     = 0x00008 
41  ONSCROLL      = 0x04000 
42   
43  FOCUSEVENTS   = 0x01800 # ONFOCUS | ONBLUR 
44  KEYEVENTS     = 0x00380 # ONKEYDOWN | ONKEYPRESS | ONKEYUP 
45  MOUSEEVENTS   = 0x0007C # ONMOUSEDOWN | ONMOUSEUP | ONMOUSEMOVE | ONMOUSEOVER | ONMOUSEOUT 
46