[Yt-svn] yt-commit r569 - trunk/yt/reason
mturk at wrangler.dreamhost.com
mturk at wrangler.dreamhost.com
Tue Jun 17 09:29:09 PDT 2008
Author: mturk
Date: Tue Jun 17 09:29:07 2008
New Revision: 569
URL: http://yt.spacepope.org/changeset/569
Log:
I think this fixes bug #122. It was related to a problem in the name-mangling
for semi-private attributes -- in this case, self.__context_menu_position was
set by a PlotPage, but used by a VMPlotPage. So the name was mangled
differently when each tried to access it.
Modified:
trunk/yt/reason/Notebook.py
Modified: trunk/yt/reason/Notebook.py
==============================================================================
--- trunk/yt/reason/Notebook.py (original)
+++ trunk/yt/reason/Notebook.py Tue Jun 17 09:29:07 2008
@@ -238,7 +238,7 @@
def OnShowContextMenu(self, event):
pos = event.GetPosition()
pos = self.figure_canvas.ScreenToClient(pos)
- self.__context_menu_position = pos
+ self._context_menu_position = pos
self.figure_canvas.PopupMenu(self.popupmenu)
def OnColorMapChoice(self, event):
@@ -491,7 +491,7 @@
self.UpdateCanvas()
def OnCenterHere(self, event):
- xp, yp = self.__context_menu_position
+ xp, yp = self._context_menu_position
x, y = self.ConvertPositionToDataPosition(xp, yp)
if x == None or y == None: return
self.ChangeCenter(x,y)
More information about the yt-svn
mailing list