SysMonthCal32.py
899 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
#NVDAObjects/IAccessible/SysMonthCal32.py
#A part of NonVisual Desktop Access (NVDA)
#Copyright (C) 2006-2007 NVDA Contributors <http://www.nvda-project.org/>
#This file is covered by the GNU General Public License.
#See the file COPYING for more details.
import controlTypes
from . import IAccessible
class SysMonthCal32(IAccessible):
def _get_role(self):
return controlTypes.ROLE_CALENDAR
def _get_name(self):
return ""
def _get_value(self):
return super(SysMonthCal32,self).name
def script_valueChange(self,gesture):
gesture.send()
self.event_valueChange()
__valueChangeGestures = (
"kb:upArrow",
"kb:downArrow",
"kb:leftArrow",
"kb:rightArrow",
"kb:home",
"kb:end",
"kb:control+home",
"kb:control+end",
"kb:pageDown",
"kb:pageUp",
)
def initOverlayClass(self):
for gesture in self.__valueChangeGestures:
self.bindGesture(gesture, "valueChange")