we can write in a messsage box using
msg = "Hello World"
dlg = wx.MessageDialog(self, msg, "About", wx.OK)
dlg.showmodal()
dlg.Destroy()
now the problem is writing a list using msg = list…
where list is our output that we want to display in the msg box.
i am geting an error that “string or unicode type required”
The message in a message box must be a string. Thus a list must be converted to a string. There is more than one way of doing this, but my recommendation is to do this.
If you don’t want a comma replace it with something else. You could even to this if you want the output to be one line per item in list.
I think that’s what your after.