Added gobs of stuff, see wxPython/README.txt for details git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@2310 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
		
			
				
	
	
		
			54 lines
		
	
	
		
			1.2 KiB
		
	
	
	
		
			Python
		
	
	
	
	
	
			
		
		
	
	
			54 lines
		
	
	
		
			1.2 KiB
		
	
	
	
		
			Python
		
	
	
	
	
	
 | 
						|
from wxPython.wx import *
 | 
						|
 | 
						|
#----------------------------------------------------------------------
 | 
						|
 | 
						|
class TestPanel(wxPanel):
 | 
						|
    def __init__(self, parent, log):
 | 
						|
        wxPanel.__init__(self, parent, -1)
 | 
						|
        self.log = log
 | 
						|
 | 
						|
        sampleList = ['zero', 'one', 'two', 'three', 'four', 'five',
 | 
						|
                      'six', 'seven', 'eight', 'nine', 'ten', 'eleven',
 | 
						|
                      'twelve', 'thirteen', 'fourteen']
 | 
						|
 | 
						|
        wxStaticText(self, -1, "This example uses the wxCheckListBox control.",
 | 
						|
                               wxPoint(45, 15))
 | 
						|
 | 
						|
        lb = wxCheckListBox(self, 60, wxPoint(80, 50), wxSize(80, 120),
 | 
						|
                            sampleList)
 | 
						|
        EVT_LISTBOX(self, 60, self.EvtListBox)
 | 
						|
        EVT_LISTBOX_DCLICK(self, 60, self.EvtListBoxDClick)
 | 
						|
        lb.SetSelection(0)
 | 
						|
 | 
						|
 | 
						|
    def EvtListBox(self, event):
 | 
						|
        self.log.WriteText('EvtListBox: %s\n' % event.GetString())
 | 
						|
 | 
						|
    def EvtListBoxDClick(self, event):
 | 
						|
        self.log.WriteText('EvtListBoxDClick:\n')
 | 
						|
 | 
						|
 | 
						|
 | 
						|
#----------------------------------------------------------------------
 | 
						|
 | 
						|
def runTest(frame, nb, log):
 | 
						|
    win = TestPanel(nb, log)
 | 
						|
    return win
 | 
						|
 | 
						|
#----------------------------------------------------------------------
 | 
						|
 | 
						|
 | 
						|
 | 
						|
 | 
						|
 | 
						|
 | 
						|
 | 
						|
 | 
						|
 | 
						|
 | 
						|
overview = """\
 | 
						|
"""
 | 
						|
 | 
						|
 |