[wxPython] Checkboxes

Sorry for all of the questions...the more I learn the more I want to do :slight_smile:

With checkboxes, how can I set individual boxes when I create then from a
list?

  ProductList = ['Product 1', 'Product 2', 'Product 3']

          wxStaticText(self.command, -1, 'Products to Order',
wxPoint(15, 35))

    self.products = wxCheckListBox(self.command, ID_PRODUCTS_ORDERED,
          wxPoint(10, 60), wxSize(250, 120),
ProductList)
             EVT_LISTBOX(self, ID_PRODUCTS_ORDERED,
self.EvtProductsOrdered)

So the user may order product 1, 2, or 3. But what if I want to set or clear
any or all of these from another method? I see in the demo how to do it if I
individually.

Thanks, again
          
Greg Lindstrom
Acxiom Corporation, mail: CWY10011149
InfoBase Products Development office: (501) 342-1626
301 Industrial Blvd, Conway, AR, 72032 fax: (501) 336-3911
email: Greg.Lindstrom@acxiom.com

"When the solution is simple, God has spoken"

                                                            Albert Einstein

Sorry for all of the questions...the more I learn the more I want to do

:slight_smile:

Read the docs...

With checkboxes, how can I set individual boxes when I create then from a
list?

ProductList = ['Product 1', 'Product 2', 'Product 3']

        wxStaticText(self.command, -1, 'Products to Order',
wxPoint(15, 35))

  self.products = wxCheckListBox(self.command, ID_PRODUCTS_ORDERED,
wxPoint(10, 60), wxSize(250, 120),
ProductList)

    self.products.Check(itemNumber, true)

···

--
Robin Dunn
Software Craftsman
robin@AllDunn.com Java give you jitters?
http://wxPython.org Relax with wxPython!