[Boa Constr] Key error. Frame marked as main in wxapp does not match actual frame
Status: Beta
Brought to you by:
riaan
From: Tanay S. <tan...@gm...> - 2009-03-20 05:44:56
|
Hello there, I'm developing a wxapp using Boa. I have a mainframe.py file which is the starting point of the allpication. Now i've edited and saved mainframe.py and when i run the app, it shows the older version of main frame, while when i run module mainframe.py, that shows properly. This did not happen before, only after i renamed the mainframe.py file from outside boa, i think its started happenin Source for wxapp file: #!/usr/bin/env python #Boa:App:BoaApp import wx import Frame1 modules ={'Dialog_SendSMS': [0, '', u'Dialog_SendSMS.py'], 'Dialog_SchSMS': [0, '', u'Dialog_SchSMS.py'], u'Dialog_Transliterate': [0, '', u'Dialog_Transliterate.py'], 'MainFrame': [1, 'Main frame of Application', u'MainFrame.py'], 'Wizard_Connect': [0, '', u'Wizard_Connect.py']} class BoaApp(wx.App): def OnInit(self): self.main = Frame1.create(None) self.main.Show() self.SetTopWindow(self.main) return True def main(): application = BoaApp(0) application.MainLoop() if __name__ == '__main__': main() ----------------------------------------------------------------------- Also, when i try to assign mainframe.py as main module, i get following error: 11:10:39 AM: Traceback (most recent call last): 11:10:39 AM: File "C:\Python25\Lib\site-packages\boa-constructor\Views\AppViews.py", line 227, in OnMakeMain self.model.changeMainFrameModule(self.GetItemText(self.selected)) 11:10:39 AM: File "C:\Python25\Lib\site-packages\boa-constructor\Models\PythonEditorModels.py", line 1001, in changeMainFrameModule impLine = module.imports[mod][0]-1 11:10:39 AM: KeyError: 'MainFrame' -- Tanay Shah |