From: Kevin Ollivier Date: Mon, 11 Dec 2006 16:34:36 +0000 (+0000) Subject: Updating with Vadim's API changes. X-Git-Url: https://git.saurik.com/wxWidgets.git/commitdiff_plain/0a95d3369e08206a43032472418693f7726591e5 Updating with Vadim's API changes. git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@43930 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- diff --git a/wxPython/demo/SearchCtrl.py b/wxPython/demo/SearchCtrl.py index 612b08ad50..53d600c907 100644 --- a/wxPython/demo/SearchCtrl.py +++ b/wxPython/demo/SearchCtrl.py @@ -45,10 +45,10 @@ class TestPanel(wx.Panel): def OnToggleSearchButton(self, evt): - self.search.SetSearchButtonVisible( evt.GetInt() ) + self.search.ShowSearchButton( evt.GetInt() ) def OnToggleCancelButton(self, evt): - self.search.SetCancelButtonVisible( evt.GetInt() ) + self.search.ShowCancelButton( evt.GetInt() ) def OnToggleSearchMenu(self, evt): if evt.GetInt(): diff --git a/wxPython/src/_srchctrl.i b/wxPython/src/_srchctrl.i index 6e9bc69703..9f32a68e20 100644 --- a/wxPython/src/_srchctrl.i +++ b/wxPython/src/_srchctrl.i @@ -56,11 +56,11 @@ public: // get/set search options // ---------------------- - virtual void SetSearchButtonVisible( bool show ); - virtual bool GetSearchButtonVisible() const; + virtual void ShowSearchButton( bool show ); + virtual bool IsSearchButtonVisible() const; - virtual void SetCancelButtonVisible( bool show ); - virtual bool GetCancelButtonVisible() const; + virtual void ShowCancelButton( bool show ); + virtual bool IsCancelButtonVisible() const; #ifdef __WXMAC__ %extend { @@ -76,8 +76,8 @@ public: %property(Menu, GetMenu, SetMenu); - %property(SearchButtonVisible, GetSearchButtonVisible, SetSearchButtonVisible); - %property(CancelButtonVisible, GetCancelButtonVisible, SetCancelButtonVisible); + %property(SearchButtonVisible, IsSearchButtonVisible, ShowSearchButton); + %property(CancelButtonVisible, IsCancelButtonVisible, ShowCancelButton); };