[Yt-svn] yt-commit r408 - trunk/yt/reason
mturk at wrangler.dreamhost.com
mturk at wrangler.dreamhost.com
Wed Apr 23 13:10:58 PDT 2008
Author: mturk
Date: Wed Apr 23 13:10:57 2008
New Revision: 408
URL: http://yt.spacepope.org/changeset/408
Log:
Fixing it to disable the velocity vectors button, because that does not (currently) work, and also to make the limit getting work. Fixes #72.
Modified:
trunk/yt/reason/App.py
trunk/yt/reason/Toolbars.py
Modified: trunk/yt/reason/App.py
==============================================================================
--- trunk/yt/reason/App.py (original)
+++ trunk/yt/reason/App.py Wed Apr 23 13:10:57 2008
@@ -186,10 +186,10 @@
self.toolbar.AddControl(self.available_fields)
Publisher().subscribe(self.MessageUpdateToolbarFields, ('page_changed'))
AddButton(self._VMTB_FULLDOMAIN, "Zoom Top", "Zoom to the top level", wx.ART_FIND)
- AddButton(self._VMTB_CHANGELIMITS, "Change Limits", "Change the colorbar limits")
+ AddButton(self._VMTB_CHANGELIMITS, "Change Limits", "Change the colorbar limits", wx.ART_GO_UP)
AddButton(self._VMTB_VIEWPF, "View ParameterFile", "View the parameter file", wx.ART_NORMAL_FILE)
cl = wx.ArtProvider.GetBitmap(wx.ART_TICK_MARK, wx.ART_TOOLBAR, (16,16))
- self.toolbar.AddCheckLabelTool(self._VMTB_VELPLOT, "VelVecs", cl, shortHelp="Plot Velocity Vectors")
+ #self.toolbar.AddCheckLabelTool(self._VMTB_VELPLOT, "VelVecs", cl, shortHelp="Plot Velocity Vectors")
self.toolbar.AddSeparator()
self.Bind(wx.EVT_MENU, self.__setup_fido_tree, id=self._VMTB_REREADFIDO)
Modified: trunk/yt/reason/Toolbars.py
==============================================================================
--- trunk/yt/reason/Toolbars.py (original)
+++ trunk/yt/reason/Toolbars.py Wed Apr 23 13:10:57 2008
@@ -13,12 +13,12 @@
it under the terms of the GNU General Public License as published by
the Free Software Foundation; either version 3 of the License, or
(at your option) any later version.
-
+
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
-
+
You should have received a copy of the GNU General Public License
along with this program. If not, see <http://www.gnu.org/licenses/>.
"""
@@ -51,7 +51,7 @@
self.SetSizer(self.sizer)
self.Fit()
-class ReasonLimitInput(wx.Dialog):
+class ReasonLimitSelectionWindow(wx.Dialog):
def __init__(self, plot):
wx.Dialog.__init__(self, None, -1, 'Limit Setter',
size=wx.Size(300,300))
@@ -125,4 +125,9 @@
dlg.Destroy()
return w, u
-
+def ChooseLimits(plot):
+ dlg = ReasonLimitSelectionWindow(plot)
+ resp = dlg.ShowModal()
+ z1, z2 = dlg.GetData()
+ dlg.Destroy()
+ return z1, z2
More information about the yt-svn
mailing list