diff --git a/demo/EditableListBox.py b/demo/EditableListBox.py index 55de3b69..ab904e7e 100644 --- a/demo/EditableListBox.py +++ b/demo/EditableListBox.py @@ -1,6 +1,6 @@ import wx -import wx.gizmos as gizmos +import wx.adv #---------------------------------------------------------------------- @@ -9,10 +9,13 @@ class TestPanel(wx.Panel): wx.Panel.__init__(self, parent, -1) self.log = log - self.elb = gizmos.EditableListBox( - self, -1, "List of Stuff", (50,50), (250, 250) - ) - #style=wx.EL_ALLOW_NEW | wx.EL_ALLOW_EDIT | wx.EL_ALLOW_DELETE) + self.elb = wx.adv.EditableListBox( + self, -1, "List of Stuff", (50,50), (250, 250), + style=wx.adv.EL_DEFAULT_STYLE | + wx.adv.EL_NO_REORDER | + wx.adv.EL_ALLOW_NEW | + wx.adv.EL_ALLOW_EDIT | + wx.adv.EL_ALLOW_DELETE) self.elb.SetStrings(["This is a nifty ListBox widget", "that is editable by the user.", @@ -37,7 +40,7 @@ def runTest(frame, nb, log): overview = """\
-This class provides a composite control that lets the user easily enter and edit +This class provides a composite control that lets the user easily enter and edit a list of strings.Styles supported:
@@ -60,19 +63,19 @@ a list of strings.
Methods: