[Dev] Dabo, Wax, others?
John Anderson
john at osafoundation.org
Thu Sep 15 16:13:43 PDT 2005
The debug version now logs uncaught exceptions in a pop up window, so we
can fix them. Currently I don't think there are any outstanding bugs of
this sort left.
Heikki Toivonen wrote:
>>Wax: http://sourceforge.net/projects/waxgui or maybe
>>http://zephyrfalcon.org/labs/dope_on_wax.html
>>
>>
>
>Just had a brief look at the 5 points why this is better than plain
>wxPython, and one of the items looks like it could address one of our
>core concerns, namely wxPython eating exceptions. I quote:
>
>3. Easy setting of exception hook: in the main frame of the application,
>you can set a magic method named __ExceptHook__, which deals with
>uncaught exceptions. For example (code from examples/excepthook1.py):
>
>from wax import *
>
>class MainFrame(Frame):
> def Body(self):
> self.AddComponent(Button(self, "one", event=self.OnClick))
> self.Pack()
> def OnClick(self, event=None):
> # deliberately create an error
> x = 1/0
> def __ExceptHook__(self, exctype, value, traceback):
> dlg = ErrorDialog(self, exctype, value, traceback)
> dlg.ShowModal()
> dlg.Destroy()
>
>app = Application(MainFrame)
>app.MainLoop()
>
>
>
>------------------------------------------------------------------------
>
>_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
>
>Open Source Applications Foundation "Dev" mailing list
>http://lists.osafoundation.org/mailman/listinfo/dev
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.osafoundation.org/pipermail/dev/attachments/20050915/32ac6727/attachment.html
More information about the Dev
mailing list