|
@@ -39,7 +39,9 @@ class HistogramPlotFrame(BasePlotFrame):
|
|
BasePlotFrame.__init__(self, parent, size = size, **kwargs)
|
|
BasePlotFrame.__init__(self, parent, size = size, **kwargs)
|
|
|
|
|
|
self.toolbar = HistogramPlotToolbar(parent = self)
|
|
self.toolbar = HistogramPlotToolbar(parent = self)
|
|
- self.SetToolBar(self.toolbar)
|
|
|
|
|
|
+ # workaround for http://trac.wxwidgets.org/ticket/13888
|
|
|
|
+ if sys.platform != 'darwin':
|
|
|
|
+ self.SetToolBar(self.toolbar)
|
|
self.SetTitle(_("GRASS GIS Histogramming Tool"))
|
|
self.SetTitle(_("GRASS GIS Histogramming Tool"))
|
|
|
|
|
|
#
|
|
#
|
|
@@ -243,7 +245,11 @@ class HistogramPlotToolbar(BaseToolbar):
|
|
"""
|
|
"""
|
|
def __init__(self, parent):
|
|
def __init__(self, parent):
|
|
BaseToolbar.__init__(self, parent)
|
|
BaseToolbar.__init__(self, parent)
|
|
-
|
|
|
|
|
|
+
|
|
|
|
+ # workaround for http://trac.wxwidgets.org/ticket/13888
|
|
|
|
+ if sys.platform == 'darwin':
|
|
|
|
+ parent.SetToolBar(self)
|
|
|
|
+
|
|
self.InitToolbar(self._toolbarData())
|
|
self.InitToolbar(self._toolbarData())
|
|
|
|
|
|
# realize the toolbar
|
|
# realize the toolbar
|