From: Patrick <ph...@ma...> - 2009-03-26 19:34:48
|
Using Version 0.6.3 on Python 2.5.2 and wxPython 2.8.8.0 on Ubuntu 8.10, after working on a project for a couple of weeks I started getting this every time I generate code: wxGlade event_handlers block not found for notebook_1, event_handlers code NOT generated This error comes from codegen.py because this fails: if prev_src.content.find(tag) < 0: with tag equal to: <1238094948295089089wxGlade event_handlers MyNotebook> Properties for notebook_1 show EVT_NOTEBOOK_CHANGED PageChanged EVT_NOTEBOOK_CHANGING PageChanging in the output python file there's: class MyFrame(wx.Frame): def __init__(self, *args, **kwds): SNIP # begin wxGlade: MyFrame.__init__ SNIP self.Bind(wx.EVT_NOTEBOOK_PAGE_CHANGED, self.PageChanged, self.notebook_1) self.Bind(wx.EVT_NOTEBOOK_PAGE_CHANGING, self.PageChanging, self.notebook_1) SNIP # end wxGlade SNIP as well as: def PageChanged(self, event): # wxGlade: MyFrame.<event_handler> and def PageChanging(self, event): # wxGlade: MyFrame.<event_handler> HELP!!!<grin;> Can anyone help? Patrick |