From 77aee8713e9b9120d48b2488dce602d5aa73a2b5 Mon Sep 17 00:00:00 2001 From: Robin Dunn Date: Sat, 2 Sep 2006 22:11:22 +0000 Subject: [PATCH] properties fixes for Mac git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@40969 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- wxPython/src/_combobox.i | 6 ++++++ wxPython/src/_listbox.i | 5 +++++ wxPython/src/mac/_controls.py | 6 ++++++ 3 files changed, 17 insertions(+) diff --git a/wxPython/src/_combobox.i b/wxPython/src/_combobox.i index ad99e2eb26..f5d68f6982 100644 --- a/wxPython/src/_combobox.i +++ b/wxPython/src/_combobox.i @@ -164,7 +164,13 @@ combobox text field.", ""); "Gets the positions of the begining and ending of the selection mark in the combobox text field.", "", GetMark); +#else + %pythoncode { + def GetMark(self): + raise NotImplementedError + } #endif + DocDeclStr( int , GetCurrentSelection() const, diff --git a/wxPython/src/_listbox.i b/wxPython/src/_listbox.i index 4a0be69b3e..df526d3c42 100644 --- a/wxPython/src/_listbox.i +++ b/wxPython/src/_listbox.i @@ -205,6 +205,11 @@ public: #if defined(__WXMSW__) || defined(__WXGTK__) int GetItemHeight(); +#else + %pythoncode { + def GetItemHeight(self): + raise NotImplementedError + } #endif %property(ItemHeight, GetItemHeight, doc="See `GetItemHeight`"); diff --git a/wxPython/src/mac/_controls.py b/wxPython/src/mac/_controls.py index a90166bd4f..0243c5a302 100644 --- a/wxPython/src/mac/_controls.py +++ b/wxPython/src/mac/_controls.py @@ -677,6 +677,9 @@ class ComboBox(_core.Control,_core.ItemContainer): """ return _controls_.ComboBox_SetMark(*args, **kwargs) + def GetMark(self): + raise NotImplementedError + def GetCurrentSelection(*args, **kwargs): """ GetCurrentSelection(self) -> int @@ -1454,6 +1457,9 @@ class CheckListBox(ListBox): """Check(self, unsigned int index, int check=True)""" return _controls_.CheckListBox_Check(*args, **kwargs) + def GetItemHeight(self): + raise NotImplementedError + ItemHeight = property(GetItemHeight,doc="See `GetItemHeight`") _controls_.CheckListBox_swigregister(CheckListBox) -- 2.45.2