Lance Haig wrote:
> Hi,
>
> I get the attached error when I click on the button to create a new
> server.
>
> I am willing to share the code if it will help diagnose this problem
> and show my bad code:-)
>
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 ?
If that doesn't help, feel free to send the code to me at
al...@tw... and I'll take a look.
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 ?
Come to think of it, why call _setSelection directly ?
Would it not be better to do
self.components.serverList.selection = self.selected
--
Alex Tweedly http://www.tweedly.net
--
No virus found in this outgoing message.
Checked by AVG Free Edition.
Version: 7.1.394 / Virus Database: 268.9.6/378 - Release Date: 28/06/2006
|