> 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()

-- 
  Heikki Toivonen

Attachment: signature.asc
Description: OpenPGP digital signature

_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _

Open Source Applications Foundation "Dev" mailing list
http://lists.osafoundation.org/mailman/listinfo/dev

Reply via email to