#1
  1. Cast down
    Devshed Newbie (0 - 499 posts)

    Join Date
    Jul 2003
    Location
    Sweden
    Posts
    321
    Rep Power
    12

    wxPython wx.ListBox questions.. it seems so limited.


    Is it possible to sort the items in a listbox automatically? style=wx.LB_SORT and/or CB_SORT do not seem to do anything.

    Can I change the background/foreground color of the selected item? I want it to be consistent on all platforms and OS settings.

    and finally, is it possible to center the text? I do not want to have the text aligned to the left.

    What widget should I be using if the above can not be done with a ListBox?
  2. #2
  3. No Profile Picture
    Contributing User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Jun 2005
    Posts
    33
    Rep Power
    10
    wx.LB_SORT works fine. Put some code up so I can see how you have it setup.
  4. #3
  5. Contributing User
    Devshed Intermediate (1500 - 1999 posts)

    Join Date
    Dec 2004
    Location
    Meriden, Connecticut
    Posts
    1,797
    Rep Power
    154
    Use a ListCtrl.

IMN logo majestic logo threadwatch logo seochat tools logo