Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
path: root/pynxc/waxy/events.py
diff options
context:
space:
mode:
Diffstat (limited to 'pynxc/waxy/events.py')
-rw-r--r--pynxc/waxy/events.py33
1 files changed, 33 insertions, 0 deletions
diff --git a/pynxc/waxy/events.py b/pynxc/waxy/events.py
new file mode 100644
index 0000000..a9fef15
--- /dev/null
+++ b/pynxc/waxy/events.py
@@ -0,0 +1,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.
+}