wxPython wxListBox Contains - Printable Version +- Python Forum (https://python-forum.io) +-- Forum: Python Coding (https://python-forum.io/forum-7.html) +--- Forum: GUI (https://python-forum.io/forum-10.html) +--- Thread: wxPython wxListBox Contains (/thread-6229.html) |
wxPython wxListBox Contains - QueenSvetlana - Nov-11-2017 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.
RE: wxPython wxListBox Contains - snippsat - Nov-11-2017 There is no contain,but canĀ FindString() should work if do it like this.foo_list.FindString(self.bar.GetStringSelection()) == wx.NOT_FOUND: |