From a334841ed190c1ba737cd62428db4cd571eaa71f Mon Sep 17 00:00:00 2001 From: OceanWolf Date: Fri, 17 Apr 2015 20:29:11 +0200 Subject: [PATCH] Add backend anme to widgets --- lib/matplotlib/backends/backend_gtk3.py | 5 ++--- lib/matplotlib/backends/backend_gtk3agg.py | 8 ++++---- lib/matplotlib/backends/backend_gtk3cairo.py | 8 ++++---- 3 files changed, 10 insertions(+), 11 deletions(-) diff --git a/lib/matplotlib/backends/backend_gtk3.py b/lib/matplotlib/backends/backend_gtk3.py index 1a6e0308e52d..aa30f61ff855 100644 --- a/lib/matplotlib/backends/backend_gtk3.py +++ b/lib/matplotlib/backends/backend_gtk3.py @@ -72,7 +72,7 @@ def draw_if_interactive(): figManager.canvas.draw_idle() -class MainLoop(MainLoopBase): +class MainLoopGTK3(MainLoopBase): def begin(self): if Gtk.main_level() == 0: Gtk.main() @@ -397,7 +397,7 @@ def stop_event_loop(self): flow_types = ['horizontal', 'vertical'] -class Window(WindowBase, Gtk.Window): +class WindowGTK3(WindowBase, Gtk.Window): def __init__(self, title): WindowBase.__init__(self, title) Gtk.Window.__init__(self) @@ -1214,6 +1214,5 @@ def error_msg_gtk(msg, parent=None): backend_tools.ToolRubberband = RubberbandGTK3 Toolbar = ToolbarGTK3 -Statusbar = StatusbarGTK3 FigureCanvas = FigureCanvasGTK3 FigureManager = FigureManagerGTK3 diff --git a/lib/matplotlib/backends/backend_gtk3agg.py b/lib/matplotlib/backends/backend_gtk3agg.py index 990cbf752cbe..4627436c33d0 100644 --- a/lib/matplotlib/backends/backend_gtk3agg.py +++ b/lib/matplotlib/backends/backend_gtk3agg.py @@ -121,9 +121,9 @@ def new_figure_manager_given_figure(num, figure): FigureCanvas = FigureCanvasGTK3Agg FigureManager = FigureManagerGTK3Agg -Window = backend_gtk3.Window -Toolbar = backend_gtk3.Toolbar -Statusbar = backend_gtk3.Statusbar +Window = backend_gtk3.WindowGTK3 +Toolbar = backend_gtk3.ToolbarGTK3 +Statusbar = backend_gtk3.StatusbarGTK3 Toolbar2 = backend_gtk3.NavigationToolbar2GTK3 -MainLoop = backend_gtk3.MainLoop +MainLoop = backend_gtk3.MainLoopGTK3 show = backend_gtk3.show diff --git a/lib/matplotlib/backends/backend_gtk3cairo.py b/lib/matplotlib/backends/backend_gtk3cairo.py index 5c9dec3166fd..65934824e554 100644 --- a/lib/matplotlib/backends/backend_gtk3cairo.py +++ b/lib/matplotlib/backends/backend_gtk3cairo.py @@ -72,9 +72,9 @@ def new_figure_manager_given_figure(num, figure): FigureCanvas = FigureCanvasGTK3Cairo FigureManager = FigureManagerGTK3Cairo -Window = backend_gtk3.Window -Toolbar = backend_gtk3.Toolbar -Statusbar = backend_gtk3.Statusbar +Window = backend_gtk3.WindowGTK3 +Toolbar = backend_gtk3.ToolbarGTK3 +Statusbar = backend_gtk3.StatusbarGTK3 Toolbar2 = backend_gtk3.NavigationToolbar2GTK3 -MainLoop = backend_gtk3.MainLoop +MainLoop = backend_gtk3.MainLoopGTK3 show = backend_gtk3.show