From: Lance H. <lh...@ha...> - 2006-06-29 09:53:30
|
Hi Alex > If it were me, I'd try adding the line > print self.selected, self.components.serverList.items > immediately before line 111, and see what that tells me. Is the index > reasonable ? Are all the list items you expected in there ? yes I do have a "0" in front of the list but otherwise the list shows up fine. > If that doesn't help, feel free to send the code to me at > al...@tw... and I'll take a look. > Thanks I will. > btw - why "int()" in > self.components.serverList._setSelection(int(self.selected)) ? > Whatever is in self.selected ought to be an integer index already > before this call can work ? I remove the int section and it was redundant thanks for noticing. > > Come to think of it, why call _setSelection directly ? > Would it not be better to do self.components.serverList.selection = > self.selected It probably would be. 99% of the code in this app was reused code from the custdb example that Juergen Rauch wrote. I just manipulated the code to do what I wanted. So probably it is not right for what I want to do. I appreciate the help. Thanks Lance |