[wxPython-users] MyApp now creating 2 instances of MyFrame

Michael Barron barronmo at gmail.com
Fri Nov 30 21:54:31 PST 2007


I got it fixed.  I think there were a number of things I was doing wrong.
Among the different modules I was importing the other modules.  This seemed
to result in a duplication that caused several instances of my frame to
load.  I believe this also caused the modules to not import because they
were running as "main".

For a while I couldn't get things to work with my database login under the
MyApp class but I eventually guessed that wx.GetApp() can be used to refer
to 'conn' from other modules.  This way I can open and close the cursor as
needed while keeping the connection open.

Thanks for the help.

Mike


>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.wxwidgets.org/pipermail/wxpython-users/attachments/200712=
01/230cbd41/attachment.htm


More information about the wxpython-users mailing list