GUI problem while using wxCheckListBox

hi all,

i have one doubt .

i am trying to use wx.CheckListBox which shows a particular list of labels frm a sampleList

These labels are obtained frm a dialogbox say, wx.MultiChoiceDialog

ie,

On Open btn the dialog pops up and labels are diaplyed. The user can select the labels according to his wish and on OK

he gets appended to the wx.CheckListBox.

my problem is when my app runs i get certain values for the labels i have chosen… these values must also be displayed along with the labels i have chosen…

in List Ctrl we can have sep cols for that. but i am not seeing any thing like that in this one…

does this mean i need to write a generic function to get what i require…

say,

def xxxxx():

.

s = wx.BoxSizer(Horizontal)

chkBox = wx.CheckBox()

lbl = wx.StaticText

txtCtrl = wx.TextCtrl() ----------> for diaplaying values of the label

s.add(chkBox)

s.add(lbl)

s.add(ttCtrl)

Hope i am able to clarify my requirement. i am attaching my files along with this. This is just a sample app.

I need a checkbox along with a label…and somecontrol so that i can display the values corresponding to each label in that ctrl

MyPanel.py (2.31 KB)

OpenDialog.py (1.29 KB)

···


Regards,

Shine Anne

Shine Anne wrote:

my problem is when my app runs i get certain values for the labels i have chosen.. these values must also be displayed along with the labels i have chosen..
in List Ctrl we can have sep cols for that. but i am not seeing any thing like that in this one...

In 2.7 there is a CheckListCtrlMixin class that adds checkbox capabilities to the wx.ListCtrl class. I think it is probably usable in 2.6 too. The source is at the end of the wx.lib.mixins.listctrl module, as seen here:

http://cvs.wxwidgets.org/viewcvs.cgi/wxWidgets/wxPython/wx/lib/mixins/listctrl.py?rev=1.22&content-type=text/vnd.viewcvs-markup

and an example of using it is here:

http://cvs.wxwidgets.org/viewcvs.cgi/wxWidgets/wxPython/demo/CheckListCtrlMixin.py?rev=1.2&content-type=text/vnd.viewcvs-markup

···

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