Updating with Vadim's API changes.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@43930 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -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():
|
||||
|
@@ -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);
|
||||
};
|
||||
|
||||
|
||||
|
Reference in New Issue
Block a user