[wxPython-users] Help needed to get ScrolledPanel scrolling!
Doran_Dermot at emc.com
Doran_Dermot at emc.com
Mon Jul 3 01:02:17 PDT 2006
Hi Robin,
Thanks very much for the explanation!
Cheers!!
Dermot.
Dermot Doran Sr Technical Support Engineer
EMC GTS Solutions Level 2 Infrastructure Services
Office: +353-21-4281500 (x5474)
Mobile: +31-6-55815258
Worldwide Customer Support Number: + 800 782 43622
-----Original Message-----
From: Robin Dunn [mailto:robin at alldunn.com]
Sent: 29 June 2006 18:15
To: wxPython-users at lists.wxwidgets.org
Subject: Re: [wxPython-users] Help needed to get ScrolledPanel
scrolling!
Doran_Dermot at emc.com wrote:
> Hello All,
>
> It may seem to be a bit odd to reply to oneself, but I've discovered
> that the IDE I'm using was trapping the exception! I'm using Wing IDE
> and it traps this IndexError exception!
>
> The question I have now is, should this exception be generated?
Yes. When you have a statement like this:
a, b = some_sequence_like_object
Then Python iterates over the sequence using __getitem__ to extract the
values from it. IndexError is how Python knows it has reached the end
of the sequence, but since it is not a standard type that WingIDE knows
about it catches it in the debugger and shows it to you. You can tell
Wing to ignore that exception when it is raised from that function and
then it will work as you expect.
--
Robin Dunn
Software Craftsman
http://wxPython.org Java give you jitters? Relax with wxPython!
---------------------------------------------------------------------
To unsubscribe, e-mail: wxPython-users-unsubscribe at lists.wxwidgets.org
For additional commands, e-mail: wxPython-users-help at lists.wxwidgets.org
More information about the wxpython-users
mailing list