Fixed GetFirstSelected helper method, the parameter is ignored

(copy-paste error) so I made it optional so old code wont break.


git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_4_BRANCH@19271 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Robin Dunn
2003-02-20 19:30:45 +00:00
parent 3a0b9a4453
commit 371efb285b

View File

@@ -703,7 +703,7 @@ public:
'''get the currently focused item or -1 if none'''
return self.GetNextItem(-1, wxLIST_NEXT_ALL, wxLIST_STATE_FOCUSED)
def GetFirstSelected(self, item):
def GetFirstSelected(self, *args):
'''return first selected item, or -1 when none'''
return self.GetNextSelected(-1)