diff --git a/wxPython/src/controls.i b/wxPython/src/controls.i index 2627f37e2b..2fd172ddd6 100644 --- a/wxPython/src/controls.i +++ b/wxPython/src/controls.i @@ -1134,7 +1134,12 @@ public: int GetValue(); void SetRange(int min, int max); void SetValue(int value); -#ifndef __WXGTK__ +#ifdef __WXGTK__ + %addmethods { + void SetSelection(long from, long to) { + } + } +#else void SetSelection(long from, long to); #endif };