Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 69f61e2

Browse files
committed
Remove unnecessary False arg when constructing wx.App.
The arg has always defaulted to False in wx4 (https://wxpython.org/Phoenix/docs/html/wx.App.html#wx.App.__init__ + scavenging git history), and unless you are well-versed in the wxPython API it is not clear what it means.
1 parent 2c3f14e commit 69f61e2

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

lib/matplotlib/backends/backend_wx.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1400,7 +1400,7 @@ def new_figure_manager(cls, num, *args, **kwargs):
14001400
# Create a wx.App instance if it has not been created so far.
14011401
wxapp = wx.GetApp()
14021402
if wxapp is None:
1403-
wxapp = wx.App(False)
1403+
wxapp = wx.App()
14041404
wxapp.SetExitOnFrameDelete(True)
14051405
cbook._setup_new_guiapp()
14061406
# Retain a reference to the app object so that it does not get

0 commit comments

Comments
 (0)