Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit c32c845

Browse filesBrowse files
author
Steve Chaplin
committed
SC 2005/01/06
svn path=/trunk/matplotlib/; revision=855
1 parent 50deb22 commit c32c845
Copy full SHA for c32c845

File tree

Expand file treeCollapse file tree

2 files changed

+9
-5
lines changed
Filter options
Expand file treeCollapse file tree

2 files changed

+9
-5
lines changed

‎CHANGELOG

Copy file name to clipboardExpand all lines: CHANGELOG
+3Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,8 @@
11
New entries should be added at the top
22

3+
2005-01-06 Add patch from Ben Vanhaeren to make the FigureManagerGTK vbox a
4+
public attribute - SC
5+
36
====================================================================
47
2004-12-30 Release 0.70
58

‎lib/matplotlib/backends/backend_gtk.py

Copy file name to clipboardExpand all lines: lib/matplotlib/backends/backend_gtk.py
+6-5Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -345,6 +345,7 @@ class FigureManagerGTK(FigureManagerBase):
345345
canvas : The FigureCanvas instance
346346
num : The Figure number
347347
toolbar : The gtk.Toolbar (gtk only)
348+
vbox : The gtk.VBox containing the canvas and toolbar (gtk only)
348349
window : The gtk.Window (gtk only)
349350
"""
350351
def __init__(self, canvas, num):
@@ -354,12 +355,12 @@ def __init__(self, canvas, num):
354355
self.window = gtk.Window()
355356
self.window.set_title("Figure %d" % num)
356357

357-
vbox = gtk.VBox()
358-
self.window.add(vbox)
359-
vbox.show()
358+
self.vbox = gtk.VBox()
359+
self.window.add(self.vbox)
360+
self.vbox.show()
360361

361362
self.canvas.show()
362-
vbox.pack_start(self.canvas, True, True)
363+
self.vbox.pack_start(self.canvas, True, True)
363364

364365
# must be inited after the window, drawingArea and figure
365366
# attrs are set
@@ -372,7 +373,7 @@ def __init__(self, canvas, num):
372373

373374
if self.toolbar != None:
374375
self.toolbar.show()
375-
vbox.pack_end(self.toolbar, False, False)
376+
self.vbox.pack_end(self.toolbar, False, False)
376377

377378
def destroy(*args): Gcf.destroy(num)
378379
self.window.connect("destroy", destroy)

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.