Trying out batching the stokeLine via replacement with stokeLines. Helps a bit even with only doing it for each widget individually.
Change updateUI to only change the title when necessary as updateUI is called 1000s of times a second.
Updates storypanel.paint to use batch drawing of line segments.
This involves changing passagewidget to return the line segments instead of drawing them itself.
Also removed support for a wx.graphicsContext instead of wx.DC drawing for the connector lines. Looking at git hub it has been at least 4 years since this code path has been accessible.
Changed the visibleWidget calculation to not clip connector lines.
filter(lambda a:f(a),list) is a slower version of filter(f,list)
Pushed a few self.app.config.ReadBool up the stack to reduce the amount of times it is called as it is surprisingly costly.