Skip to content

Commit

Permalink
Add backend anme to widgets
Browse files Browse the repository at this point in the history
  • Loading branch information
OceanWolf committed Apr 17, 2015
1 parent 93a8891 commit a334841
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 11 deletions.
5 changes: 2 additions & 3 deletions lib/matplotlib/backends/backend_gtk3.py
Original file line number Diff line number Diff line change
Expand Up @@ -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()
Expand Down Expand Up @@ -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)
Expand Down Expand Up @@ -1214,6 +1214,5 @@ def error_msg_gtk(msg, parent=None):
backend_tools.ToolRubberband = RubberbandGTK3

Toolbar = ToolbarGTK3
Statusbar = StatusbarGTK3
FigureCanvas = FigureCanvasGTK3
FigureManager = FigureManagerGTK3
8 changes: 4 additions & 4 deletions lib/matplotlib/backends/backend_gtk3agg.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
8 changes: 4 additions & 4 deletions lib/matplotlib/backends/backend_gtk3cairo.py
Original file line number Diff line number Diff line change
Expand Up @@ -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

0 comments on commit a334841

Please sign in to comment.