stdwinevents.py :  » Mobile » Python-for-PalmOS » Python-1.5.2+reduced-1.0 » Lib » lib-stdwin » Python Open Source

Home
Python Open Source
1.3.1.2 Python
2.Ajax
3.Aspect Oriented
4.Blog
5.Build
6.Business Application
7.Chart Report
8.Content Management Systems
9.Cryptographic
10.Database
11.Development
12.Editor
13.Email
14.ERP
15.Game 2D 3D
16.GIS
17.GUI
18.IDE
19.Installer
20.IRC
21.Issue Tracker
22.Language Interface
23.Log
24.Math
25.Media Sound Audio
26.Mobile
27.Network
28.Parser
29.PDF
30.Project Management
31.RSS
32.Search
33.Security
34.Template Engines
35.Test
36.UML
37.USB Serial
38.Web Frameworks
39.Web Server
40.Web Services
41.Web Unit
42.Wiki
43.Windows
44.XML
Python Open Source » Mobile » Python for PalmOS 
Python for PalmOS » Python 1.5.2 reduced 1.0 » Lib » lib stdwin » stdwinevents.py
# Module 'stdwinevents' -- Constants for stdwin event types
#
# Suggested usage:
#  from stdwinevents import *

# The function stdwin.getevent() returns a tuple containing:
#  (type, window, detail)
# where detail may be <no value> or a value depending on type, see below:

# Values for type:

WE_NULL       =  0  # not reported -- means 'no event' internally
WE_ACTIVATE   =  1  # detail is None
WE_CHAR       =  2  # detail is the character
WE_COMMAND    =  3  # detail is one of the WC_* constants below
WE_MOUSE_DOWN =  4  # detail is ((h, v), clicks, button, mask)
WE_MOUSE_MOVE =  5  # ditto
WE_MOUSE_UP   =  6  # ditto
WE_MENU       =  7  # detail is (menu, item)
WE_SIZE       =  8  # detail is (width, height)
WE_MOVE       =  9  # not reported -- reserved for future use
WE_DRAW       = 10  # detail is ((left, top), (right, bottom))
WE_TIMER      = 11  # detail is None
WE_DEACTIVATE = 12  # detail is None
WE_EXTERN     = 13  # detail is None
WE_KEY        = 14  # detail is ???
WE_LOST_SEL   = 15  # detail is selection number
WE_CLOSE      = 16  # detail is None

# Values for detail when type is WE_COMMAND:

WC_CLOSE      =  1  # obsolete; now reported as WE_CLOSE
WC_LEFT       =  2  # left arrow key
WC_RIGHT      =  3  # right arrow key
WC_UP         =  4  # up arrow key
WC_DOWN       =  5  # down arrow key
WC_CANCEL     =  6  # not reported -- turned into KeyboardInterrupt
WC_BACKSPACE  =  7  # backspace key
WC_TAB        =  8  # tab key
WC_RETURN     =  9  # return or enter key

# Selection numbers

WS_CLIPBOARD   = 0
WS_PRIMARY     = 1
WS_SECONDARY   = 2

# Modifier masks in key and mouse events

WM_SHIFT       = (1 << 0)
WM_LOCK   = (1 << 1)
WM_CONTROL   = (1 << 2)
WM_META   = (1 << 3)
WM_OPTION   = (1 << 4)
WM_NUM     = (1 << 5)

WM_BUTTON1   = (1 << 8)
WM_BUTTON2   = (1 << 9)
WM_BUTTON3   = (1 << 10)
WM_BUTTON4   = (1 << 11)
WM_BUTTON5   = (1 << 12)
www.java2java.com | Contact Us
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.