On Sun, 22 Feb 2015 19:03:37 +0100, <
moo...@posteo.org> wrote:
> I want to know how to organize the files holding the my wx.App-derived
> application class and my wx.Frame-derived MainWindow-GUI class.
>
> My app-class does create an instance of the main window in its OnInit()
> and manage the loading and storing of the config-file-object.
> And because it is the application it hold informations about the
> version and things like that.
>
> So the MainWindow ask the app object for the version string to display
> it. It is just an example of a lot of other cases. So please don't
> focus on the version string. :)
>
> That is why the MainWindow need to know the App-Object. And the App
> need to know the MainWindow to create an instance of it and call Show().
> That causes recursive import problems.
>
> And currently I ran into a horrible misstake about it. The file with
> the App in it is imported too times which is no problem. But global
> object instances (for example the Config-object) are overridden because
> of that.
>
> So I see I have to reorganize the current situation. But how?
Works for me. Void where prohibited ...