10000 fixed wxapp init bug · matplotlib/matplotlib@892fae4 · GitHub
[go: up one dir, main page]

Skip to content

Commit 892fae4

Browse files
committed
fixed wxapp init bug
svn path=/trunk/matplotlib/; revision=1159
1 parent 79aa291 commit 892fae4

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

lib/matplotlib/backends/backend_template.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -170,6 +170,11 @@ def new_figure_manager(num, *args, **kwargs):
170170
"""
171171
Create a new figure manager instance
172172
"""
173+
# if a main-level app must be created, this is the usual place to
174+
# do it -- see backend_wx, backend_wxagg and backend_tkagg for
175+
# examples. Not all GUIs require explicit instantiation of a
176+
# main-level app (egg backend_gtk, backend_gtkagg)
177+
173178
thisFig = Figure(*args, **kwargs)
174179
canvas = FigureCanvasTemplate(thisFig)
175180
manager = FigureManagerTemplate(canvas, num)

0 commit comments

Comments
 (0)
0