From 0a95d3369e08206a43032472418693f7726591e5 Mon Sep 17 00:00:00 2001 From: Kevin Ollivier Date: Mon, 11 Dec 2006 16:34:36 +0000 Subject: [PATCH] Updating with Vadim's API changes. git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@43930 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- wxPython/demo/SearchCtrl.py | 4 ++-- wxPython/src/_srchctrl.i | 12 ++++++------ 2 files changed, 8 insertions(+), 8 deletions(-) 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); }; -- 2.50.0