Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
path: root/pynxc/waxy/events.py
blob: a9fef151392116fa64362075523bdca8d9bf8420 (plain)
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
# events.py

import wx

# place general events here... OnEnter, OnExit, mouse events, etc.

events = {
    'Enter': wx.EVT_ENTER_WINDOW,       # entering a control w/ mouse pointer
    'EnterWindow': wx.EVT_ENTER_WINDOW,
    'Exit': wx.EVT_LEAVE_WINDOW,        # leaving a control w/ mouse pointer
    'ExitWindow': wx.EVT_LEAVE_WINDOW,
    'GetFocus': wx.EVT_SET_FOCUS,       # control gets focus
    'HotKey': wx.EVT_HOTKEY,
    'KeyDown': wx.EVT_KEY_DOWN,
    'KeyUp': wx.EVT_KEY_UP,
    'Leave': wx.EVT_LEAVE_WINDOW,
    'LeaveWindow': wx.EVT_LEAVE_WINDOW,
    'LeftClick': wx.EVT_LEFT_DOWN,      # alias for LeftDown
    'LeftDown': wx.EVT_LEFT_DOWN,
    'LeftDoubleClick': wx.EVT_LEFT_DCLICK,
    'LeftUp': wx.EVT_LEFT_UP,
    'LoseFocus': wx.EVT_KILL_FOCUS,     # control loses focus
    'Motion':wx.EVT_MOTION,
    'Move': wx.EVT_MOVE,                # window is moved. is this for frames only?
    'Resize': wx.EVT_SIZE,              # same as 'Size'
    'RightClick': wx.EVT_RIGHT_DOWN,    # alias for RightDown
    'RightDown': wx.EVT_RIGHT_DOWN,
    'RightUp': wx.EVT_RIGHT_UP,
    'Size': wx.EVT_SIZE,                # window is resized

    # NOTE: OnPaint should really be here, but this causes problems with the
    # OnPaint method that many controls already have.
}