Where is my exception
Laszlo Zsolt Nagy
gandalf at designaproduct.biz
Tue Sep 20 12:02:37 EDT 2005
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
More information about the Python-list
mailing list