Python Forum

Full Version: wxPython wxListBox Contains
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
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.
There is no contain,but canĀ FindString() should work if do it like this.
foo_list.FindString(self.bar.GetStringSelection()) == wx.NOT_FOUND: