8000 Tabbed gtk3 figuremanager by fariza · Pull Request #2465 · matplotlib/matplotlib · GitHub
[go: up one dir, main page]

Skip to content

Tabbed gtk3 figuremanager #2465

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
wants to merge 20 commits into from
Closed
Show file tree
Hide file tree
Changes from 1 commit
Commits
Show all changes
20 commits
Select commit Hold shift + click to select a range
01b0e78
refactoring FigureManagerBase to include include self in all calls to…
fariza Sep 12, 2013
ec262ad
Modified to use container for figure managers and for toolbars
fariza Sep 13, 2013
4e1d8c4
Adding standaone savefiguredialog
fariza Sep 15, 2013
a7e9968
Subplot tool and save as external clasess, working on weakref to keep…
fariza Sep 15, 2013
6c13b83
Added external buttons, trying to figure out how to keep track of them
fariza Sep 16, 2013
61d8427
Cleanup, commit to show what can be done
fariza Sep 17, 2013
b9204e5
Forgot to include external button
fariza Sep 17, 2013
0f6023e
Placing stuff in backend_bases.py and renaming rc param to single_window
fariza Sep 18, 2013
b48e903
renaming rcparam in demo 8000
fariza Sep 18, 2013
a7ab976
adding remove_tool and move_tool
fariza Sep 18, 2013
a582aeb
Adding passthought **kwargs to add_tool, default value for buttons no…
fariza Sep 19, 2013
375f32e
adding tool for lineproperties
fariza Sep 20, 2013
5ec539f
adding saveall images from http://openiconlibrary.sourceforge.net/gal…
fariza Sep 24, 2013
ecd3c91
Adding image to saveall tool, changing order to have saveall side to …
fariza Sep 25, 2013
0f3abfe
Fixing new buttons not showing after toolbar init
fariza Sep 26, 2013
a6bc104
Saveall image uses same original filesave, the colors and motive match
fariza Sep 26, 2013
2c06a64
rebase for review
fariza Oct 23, 2013
cf80c97
pep8 correction
fariza Oct 23, 2013
7033c46
removing backedn_gtk3cairo.py from test_coding_standards
fariza Oct 23, 2013
84a1911
splitting toolbar and figuremanager examples
fariza Oct 28, 2013
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Adding image to saveall tool, changing order to have saveall side to …
…side with savefile
  • Loading branch information
fariza committed Oct 23, 2013
commit ecd3c9180226c5d1963cf43e45cc8d547b6c3368
1 change: 0 additions & 1 deletion lib/matplotlib/backend_bases.py
Original file line number Diff line number Diff line change
Expand Up @@ -3670,7 +3670,6 @@ def init_tool(self, **kwargs):
#kwargs are the keyword paramters given by the user
if kwargs:
raise TypeError('init_tool() got an unexpected keyword arguments %s' % str(kwargs))
pass

def set_figures(self, *figures):
#this is the main work, many non gui tools use only this one
Expand Down
15 changes: 8 additions & 7 deletions lib/matplotlib/backends/backend_gtk3.py
Original file line number Diff line number Diff line change
Expand Up @@ -809,15 +809,14 @@ def _get_canvas(self, fig):


class MultiFigureNavigationToolbar2GTK3(Gtk.Toolbar, MultiFigureToolbarBase):
external_toolitems = ({'text': 'Subplots',
'tooltip_text': 'Configure subplots',
'image': 'subplots',
'callback': 'ConfigureSubplotsGTK3'},

{'text': 'SaveAll',
external_toolitems = ({'text': 'SaveAll',
'tooltip_text': 'Save all figures',
'callback': 'SaveFiguresDialogGTK3'},
)
{'text': 'Subplots',
'tooltip_text': 'Configure subplots',
'image': 'subplots',
'callback': 'ConfigureSubplotsGTK3'}
)
_toggle = []

def __init__(self, window):
Expand Down Expand Up @@ -1222,6 +1221,8 @@ def show(self):


class SaveFiguresDialogGTK3(ToolBase):
image = 'saveall'
register = True

def set_figures(self, *figs):
ref_figure = figs[0]
Expand Down
0