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):
|
def OnToggleSearchButton(self, evt):
|
||||||
self.search.SetSearchButtonVisible( evt.GetInt() )
|
self.search.ShowSearchButton( evt.GetInt() )
|
||||||
|
|
||||||
def OnToggleCancelButton(self, evt):
|
def OnToggleCancelButton(self, evt):
|
||||||
self.search.SetCancelButtonVisible( evt.GetInt() )
|
self.search.ShowCancelButton( evt.GetInt() )
|
||||||
|
|
||||||
def OnToggleSearchMenu(self, evt):
|
def OnToggleSearchMenu(self, evt):
|
||||||
if evt.GetInt():
|
if evt.GetInt():
|
||||||
|
@@ -56,11 +56,11 @@ public:
|
|||||||
|
|
||||||
// get/set search options
|
// get/set search options
|
||||||
// ----------------------
|
// ----------------------
|
||||||
virtual void SetSearchButtonVisible( bool show );
|
virtual void ShowSearchButton( bool show );
|
||||||
virtual bool GetSearchButtonVisible() const;
|
virtual bool IsSearchButtonVisible() const;
|
||||||
|
|
||||||
virtual void SetCancelButtonVisible( bool show );
|
virtual void ShowCancelButton( bool show );
|
||||||
virtual bool GetCancelButtonVisible() const;
|
virtual bool IsCancelButtonVisible() const;
|
||||||
|
|
||||||
#ifdef __WXMAC__
|
#ifdef __WXMAC__
|
||||||
%extend {
|
%extend {
|
||||||
@@ -76,8 +76,8 @@ public:
|
|||||||
|
|
||||||
|
|
||||||
%property(Menu, GetMenu, SetMenu);
|
%property(Menu, GetMenu, SetMenu);
|
||||||
%property(SearchButtonVisible, GetSearchButtonVisible, SetSearchButtonVisible);
|
%property(SearchButtonVisible, IsSearchButtonVisible, ShowSearchButton);
|
||||||
%property(CancelButtonVisible, GetCancelButtonVisible, SetCancelButtonVisible);
|
%property(CancelButtonVisible, IsCancelButtonVisible, ShowCancelButton);
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user