diff --git a/wxPython/src/_listbox.i b/wxPython/src/_listbox.i index ebef42f095..234eaddc2a 100644 --- a/wxPython/src/_listbox.i +++ b/wxPython/src/_listbox.i @@ -137,7 +137,7 @@ public: bool IsChecked(int index); void Check(int index, int check = True); -#if !defined(__WXMAC__) && !defined(__WXX11__) +#if defined(__WXMSW__) || defined(__WXGTK__) int GetItemHeight(); #endif diff --git a/wxPython/src/_tglbtn.i b/wxPython/src/_tglbtn.i index 1b5dabacc1..a0a755e0de 100644 --- a/wxPython/src/_tglbtn.i +++ b/wxPython/src/_tglbtn.i @@ -66,7 +66,7 @@ public: const wxString& name = wxPyToggleButtonNameStr); %name(PreToggleButton)wxToggleButton(); -#if !defined(__WXMAC__) && !defined(__WXX11__) +#if defined(__WXMSW__) || defined(__WXGTK__) bool Create(wxWindow *parent, wxWindowID id, const wxString& label,