def EVT_COMMAND_RANGE(win, id1, id2, cmd, func):
win.Connect(id1, id2, cmd, func)
+
# Scrolling
def EVT_SCROLL(win, func):
win.Connect(-1, -1, wxEVT_SCROLL_TOP, func)
win.Connect(-1, -1, wxEVT_SCROLL_PAGEUP, func)
win.Connect(-1, -1, wxEVT_SCROLL_PAGEDOWN, func)
win.Connect(-1, -1, wxEVT_SCROLL_THUMBTRACK,func)
+ win.Connect(-1, -1, wxEVT_SCROLL_THUMBRELEASE,func)
def EVT_SCROLL_TOP(win, func):
win.Connect(-1, -1, wxEVT_SCROLL_TOP, func)
def EVT_SCROLL_THUMBTRACK(win, func):
win.Connect(-1, -1, wxEVT_SCROLL_THUMBTRACK, func)
+def EVT_SCROLL_THUMBRELEASE(win, func):
+ win.Connect(-1, -1, wxEVT_SCROLL_THUMBRELEASE, func)
+
# Scrolling, with an id
win.Connect(id, -1, wxEVT_SCROLL_PAGEUP, func)
win.Connect(id, -1, wxEVT_SCROLL_PAGEDOWN, func)
win.Connect(id, -1, wxEVT_SCROLL_THUMBTRACK,func)
+ win.Connect(id, -1, wxEVT_SCROLL_THUMBRELEASE,func)
def EVT_COMMAND_SCROLL_TOP(win, id, func):
win.Connect(id, -1, wxEVT_SCROLL_TOP, func)
def EVT_COMMAND_SCROLL_THUMBTRACK(win, id, func):
win.Connect(id, -1, wxEVT_SCROLL_THUMBTRACK, func)
+def EVT_COMMAND_SCROLL_THUMBRELEASE(win, id, func):
+ win.Connect(id, -1, wxEVT_SCROLL_THUMBRELEASE, func)
+
#---
def EVT_SCROLLWIN(win, func):
- win.Connect(-1, -1, wxEVT_SCROLLWIN_TOP, func)
- win.Connect(-1, -1, wxEVT_SCROLLWIN_BOTTOM, func)
- win.Connect(-1, -1, wxEVT_SCROLLWIN_LINEUP, func)
- win.Connect(-1, -1, wxEVT_SCROLLWIN_LINEDOWN, func)
- win.Connect(-1, -1, wxEVT_SCROLLWIN_PAGEUP, func)
- win.Connect(-1, -1, wxEVT_SCROLLWIN_PAGEDOWN, func)
- win.Connect(-1, -1, wxEVT_SCROLLWIN_THUMBTRACK,func)
+ win.Connect(-1, -1, wxEVT_SCROLLWIN_TOP, func)
+ win.Connect(-1, -1, wxEVT_SCROLLWIN_BOTTOM, func)
+ win.Connect(-1, -1, wxEVT_SCROLLWIN_LINEUP, func)
+ win.Connect(-1, -1, wxEVT_SCROLLWIN_LINEDOWN, func)
+ win.Connect(-1, -1, wxEVT_SCROLLWIN_PAGEUP, func)
+ win.Connect(-1, -1, wxEVT_SCROLLWIN_PAGEDOWN, func)
+ win.Connect(-1, -1, wxEVT_SCROLLWIN_THUMBTRACK, func)
+ win.Connect(-1, -1, wxEVT_SCROLLWIN_THUMBRELEASE,func)
def EVT_SCROLLWIN_TOP(win, func):
win.Connect(-1, -1, wxEVT_SCROLLWIN_TOP, func)
def EVT_SCROLLWIN_THUMBTRACK(win, func):
win.Connect(-1, -1, wxEVT_SCROLLWIN_THUMBTRACK, func)
+def EVT_SCROLLWIN_THUMBRELEASE(win, func):
+ win.Connect(-1, -1, wxEVT_SCROLLWIN_THUMBRELEASE, func)
+
# Scrolling, with an id
def EVT_COMMAND_SCROLLWIN(win, id, func):
- win.Connect(id, -1, wxEVT_SCROLLWIN_TOP, func)
- win.Connect(id, -1, wxEVT_SCROLLWIN_BOTTOM, func)
- win.Connect(id, -1, wxEVT_SCROLLWIN_LINEUP, func)
- win.Connect(id, -1, wxEVT_SCROLLWIN_LINEDOWN, func)
- win.Connect(id, -1, wxEVT_SCROLLWIN_PAGEUP, func)
- win.Connect(id, -1, wxEVT_SCROLLWIN_PAGEDOWN, func)
- win.Connect(id, -1, wxEVT_SCROLLWIN_THUMBTRACK,func)
+ win.Connect(id, -1, wxEVT_SCROLLWIN_TOP, func)
+ win.Connect(id, -1, wxEVT_SCROLLWIN_BOTTOM, func)
+ win.Connect(id, -1, wxEVT_SCROLLWIN_LINEUP, func)
+ win.Connect(id, -1, wxEVT_SCROLLWIN_LINEDOWN, func)
+ win.Connect(id, -1, wxEVT_SCROLLWIN_PAGEUP, func)
+ win.Connect(id, -1, wxEVT_SCROLLWIN_PAGEDOWN, func)
+ win.Connect(id, -1, wxEVT_SCROLLWIN_THUMBTRACK, func)
+ win.Connect(id, -1, wxEVT_SCROLLWIN_THUMBRELEASE,func)
def EVT_COMMAND_SCROLLWIN_TOP(win, id, func):
win.Connect(id, -1, wxEVT_SCROLLWIN_TOP, func)
def EVT_COMMAND_SCROLLWIN_THUMBTRACK(win, id, func):
win.Connect(id, -1, wxEVT_SCROLLWIN_THUMBTRACK, func)
+def EVT_COMMAND_SCROLLWIN_THUMBRELEASE(win, id, func):
+ win.Connect(id, -1, wxEVT_SCROLLWIN_THUMBRELEASE, func)
+
+
# Convenience commands
def EVT_BUTTON(win, id, func):
win.Connect(id, -1, wxEVT_COMMAND_BUTTON_CLICKED, func)