Python Forum
wxPython wxListBox Contains
Thread Rating:
  • 1 Vote(s) - 5 Average
  • 1
  • 2
  • 3
  • 4
  • 5
wxPython wxListBox Contains
#1
Does wxListBox have the equivalent of C# ListBox.Items.Contains()? I looked into FindString() but I don't think that's it, or I'm not using FindString() right.
Reply
#2
There is no contain,but canĀ FindString() should work if do it like this.
foo_list.FindString(self.bar.GetStringSelection()) == wx.NOT_FOUND:
Reply


Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020