8000 Added a Glade GTK3 integration example. · matplotlib/matplotlib@ded521c · GitHub
[go: up one dir, main page]

Skip to content

Commit ded521c

Browse files
tobias47n9eWeatherGod
authored andcommitted
Added a Glade GTK3 integration example.
1 parent f706da0 commit ded521c

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

examples/user_interfaces/mpl_with_glade_316.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,14 @@
11
#!/usr/bin/env python3
22

3-
from gi.repository import Gtk
3+
from gi.repository import Gtk, Gio
44

55
from matplotlib.figure import Figure
66
from matplotlib.axes import Subplot
77
from numpy import arange, sin, pi
88
from matplotlib.backends.backend_gtk3agg import FigureCanvasGTK3Agg as FigureCanvas
99

10+
import sys
11+
1012
class Window1Signals:
1113
def on_window1_destroy(self, widget):
1214
Gtk.main_quit()

0 commit comments

Comments
 (0)
0