Ignore:
Timestamp:
Sep 25, 2018 9:50:18 AM (6 years ago)
Author:
Piotr Rozyczko <piotr.rozyczko@…>
Branches:
ESS_GUI, ESS_GUI_batch_fitting, ESS_GUI_bumps_abstraction, ESS_GUI_iss1116, ESS_GUI_opencl, ESS_GUI_ordering, ESS_GUI_sync_sascalc
Children:
cb39d66
Parents:
624c8747
Message:

Disabled native matplotlib toolbar due to bugs in its 2.1.0
implementation. Will revisit when upgrading to 3.0.
SASVIEW-1103, SASVIEW-1106

File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/sas/qtgui/Plotting/PlotterBase.py

    r863ebca r34f13a83  
    114114        if not quickplot: 
    115115            # Add the toolbar 
    116             self.toolbar.show() 
     116            # self.toolbar.show() 
     117            self.toolbar.hide() # hide for the time being 
    117118            # Notify PlotHelper about the new plot 
    118119            self.upatePlotHelper() 
     
    220221        self.actionPrintImage = self.contextMenu.addAction("Print Image") 
    221222        self.actionCopyToClipboard = self.contextMenu.addAction("Copy to Clipboard") 
    222         self.contextMenu.addSeparator() 
    223         self.actionToggleMenu = self.contextMenu.addAction("Toggle Navigation Menu") 
     223        #self.contextMenu.addSeparator() 
     224        #self.actionToggleMenu = self.contextMenu.addAction("Toggle Navigation Menu") 
    224225        self.contextMenu.addSeparator() 
    225226 
     
    229230        self.actionPrintImage.triggered.connect(self.onImagePrint) 
    230231        self.actionCopyToClipboard.triggered.connect(self.onClipboardCopy) 
    231         self.actionToggleMenu.triggered.connect(self.onToggleMenu) 
     232        #self.actionToggleMenu.triggered.connect(self.onToggleMenu) 
    232233 
    233234    def createContextMenu(self): 
     
    381382        Toggle navigation menu visibility in the chart 
    382383        """ 
    383         if self.toolbar.isVisible(): 
    384             self.toolbar.hide() 
    385         else: 
    386             self.toolbar.show() 
     384        self.toolbar.hide() 
     385        # Current toolbar menu is too buggy. 
     386        # Comment out until we support 3.x, then recheck. 
     387        #if self.toolbar.isVisible(): 
     388        #    self.toolbar.hide() 
     389        #else: 
     390        #    self.toolbar.show() 
    387391 
    388392    def offset_graph(self): 
Note: See TracChangeset for help on using the changeset viewer.