Changeset 9e00363 in sasview


Ignore:
Timestamp:
Jun 21, 2012 3:00:16 PM (12 years ago)
Author:
Jae Cho <jhjcho@…>
Branches:
master, ESS_GUI, ESS_GUI_Docs, ESS_GUI_batch_fitting, ESS_GUI_bumps_abstraction, ESS_GUI_iss1116, ESS_GUI_iss879, ESS_GUI_iss959, ESS_GUI_opencl, ESS_GUI_ordering, ESS_GUI_sync_sascalc, costrafo411, magnetic_scatt, release-4.1.1, release-4.1.2, release-4.2.2, release_4.0.1, ticket-1009, ticket-1094-headless, ticket-1242-2d-resolution, ticket-1243, ticket-1249, ticket885, unittest-saveload
Children:
f5500b3
Parents:
ffdfd23
Message:

minor mac bug fixes

Location:
calculatorview/src/sans/perspectives/calculator
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • calculatorview/src/sans/perspectives/calculator/data_operator.py

    r79c8066 r9e00363  
    2525    _BOX_WIDTH = 230 
    2626    PANEL_WIDTH = 890 
    27     PANEL_HEIGTH = 470 
     27    PANEL_HEIGTH = 430 
    2828    FONT_VARIANT = 1 
    2929    ON_MAC = True 
     
    626626 
    627627        self.erase_legend() 
    628         self.figure.tight_layout() 
    629         #self.figure.subplots_adjust(left=0.1, bottom=0.1) 
    630  
     628        try: 
     629            # mpl >= 1.1.0 
     630            self.figure.tight_layout() 
     631        except: 
     632            self.figure.subplots_adjust(left=0.1, bottom=0.1) 
    631633        self.subplot.figure.canvas.draw() 
    632634 
     
    662664        except: 
    663665            self.subplot.set_frame_on(False) 
    664         self.figure.tight_layout() 
    665         #self.figure.subplots_adjust(left=0.1, bottom=0.1) 
     666        try: 
     667            # mpl >= 1.1.0 
     668            self.figure.tight_layout() 
     669        except: 
     670            self.figure.subplots_adjust(left=0.1, bottom=0.1) 
    666671        if len(label) > 0 and xpos > 0 and ypos > 0: 
    667672            new_text = self.subplot.text(str(xpos), str(ypos), str(label), 
  • calculatorview/src/sans/perspectives/calculator/model_editor.py

    r9ec0955 r9e00363  
    2020    FONT_VARIANT = 1 
    2121    PNL_WIDTH = 590 
    22     PNL_HITE = 400 
     22    PNL_HITE = 350 
    2323M_NAME = 'Model' 
    2424EDITOR_WIDTH = 800 
     
    375375        On Select an Operator 
    376376        """ 
     377        # For Mac 
     378        if event != None: 
     379            event.Skip() 
     380             
    377381        item = event.GetEventObject() 
    378382        text = item.GetLabel().strip() 
Note: See TracChangeset for help on using the changeset viewer.