Hmm... Actually, that could work out, if I understand it
correctly. I've never had occasion to use wx.App beforeSo every class that is part of an application shares a wx.App
object? And as such, I can have references to
wx.GetApp().objPrefs that all point to the same Prefs object,
regardless of which class is referring to it?I'm gonna try it out while I wait with bated breath for a response.
Inherit your main class from wx.App and create the main frame of your app in this class' __init__.
Call your config reader also in this __init__. Perhaps make your own config class (perhaps derived from dict) that can read & write a (XML) file.
I'd send you my code, but it does a lot of stuff that will only confuse you (it's a two-step inherited twisted+wx app class that keeps a proxy database connection, keeps track of running processes etc.), and it would be a lot of work to sort that out.
Best regards,
Henning Hraban Ramm
Südkurier Medienhaus / MediaPro
Support/Admin/Development Dept.