Where is my exception

L

Laszlo Zsolt Nagy

I have this code in a wxWidgets program:

class HtmlHintWindow(wx.Frame):
def __init__(self,pos,hint,config):
global _current_hint_window
# Determine the size of the screen
self.screensize = wx.ClientDisplayRect()[2:]
# Calculate the size of the hint ;-)
self.renderer = MegaXMLRenderer()
self.renderer.LoadStyle(config.style)
self.cookie, self.parsed_xml = self.renderer.Parse(hint)
print "point 1"
try:
self.image = self.renderer.Render(
self.cookie,
self.parsed_xml,
(0,0,self.screensize[0],self.screensize[1]),
draw=True
)
finally:
print "point 2"
raise

The program prints out "point 1" but it does not print "point 2". What
am I missing?

Les
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,801
Messages
2,569,658
Members
45,421
Latest member
DoreenCorn

Latest Threads

Top