Re: [Boa Constr] frame designer crashing
Status: Beta
Brought to you by:
riaan
From: Werner F. B. <wer...@fr...> - 2007-08-20 08:14:55
|
Paul, paul sorenson wrote: > Werner, > > How are you going? Doing very well, keeping busy with my shareware and and and.... > I haven't posted in ages. > > Thanks for looking into this. My code base at home gets the "mac > fudge" for setmenubar added at build time (not at design time). I > tried a few things, including updating the version selection and still > get the same result. The version selection shouldn't be an issue, but defining a minimum instead a specific version makes it easier to maintain and worked for me as I don't have 2.6 Unicode on my machine. > > Below is the output in the console window. The RecipeModel and > getConfig "not defined" errors have always been there when opening up > the designer. Why did you instantiate these before __init__ctrl? I reordered the code as follows and it still works and gets rid of these two warning errors (I believe there is a way to define them so the designer doesn't complain but I can't find the mail from Riaan on how to do this). def __init__(self, parent): self._init_ctrls(parent) self.config = getConfig() self.ingredientGridMap = {} # Setup the model from with known constants self.recipe = RecipeModel() self.SetMenuBar(self.menubar) # added for Mac compatibility Hops.setDefaultForm(self.config.get('brewsta', 'hop_form')) The above gets rid of the designer error and to me it looks as if the app still works correctly, but then I might be missing something. > > Anyway, I will have to do a bit more digging myself. It seems it is > peculiar to my application. > > cheers > > ... > opening in Editor: brewsta.py > opening in Editor: brewsterframe.py > showing main frames > > ** (python:9430): CRITICAL **: glide_draw_box_gap: assertion `height > >= -1' failed > name 'RecipeModel' is not defined > name 'getConfig' is not defined > All the rest is GTK errors, that is why I don't get it on my Windows box. You might want to post this to the wxPython list. GTK doesn't like that a new parent is set on a widget, but I can't see where this is done in your code. Werner |