]>
git.saurik.com Git - wxWidgets.git/blob - wxPython/demo/wxEditableListBox.py
   1 from wxPython
.wx 
import * 
   2 from wxPython
.gizmos 
import * 
   4 #---------------------------------------------------------------------- 
   6 class TestPanel(wxPanel
): 
   7     def __init__(self
, parent
, log
): 
   8         wxPanel
.__init
__(self
, parent
, -1) 
  11         self
.elb 
= wxEditableListBox(self
, -1, "List of Stuff", 
  14                                      #style=wxEL_ALLOW_NEW | wxEL_ALLOW_EDIT | wxEL_ALLOW_DELETE) 
  16         self
.elb
.SetStrings(["This is a nifty ListBox widget", 
  17                              "that is editable by the user.", 
  19                              "Use the buttons above to", 
  20                              "manipulate items in the list", 
  21                              "Or to add new ones.", 
  26 #---------------------------------------------------------------------- 
  28 def runTest(frame
, nb
, log
): 
  29     win 
= TestPanel(nb
, log
) 
  33 #---------------------------------------------------------------------- 
  40 This class provides a composite control that lets the 
  41 user easily enter and edit a list of strings.