Changeset e6d9703 in sasview


Ignore:
Timestamp:
Apr 4, 2014 12:39:26 PM (11 years ago)
Author:
Mathieu Doucet <doucetm@…>
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:
6c00702
Parents:
77c13028
Message:

Re #212 Fix another tool bar

File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/sans/perspectives/calculator/gen_scatter_panel.py

    ra855fec re6d9703  
    18311831        """ 
    18321832        tsize = (20, 20) 
    1833         tb = self.CreateToolBar(wx.TB_HORIZONTAL | wx.TB_FLAT) 
     1833        # The legacy code doesn't work well for wx 3.0 
     1834        # but the old code produces better results with wx 2.8 
     1835        if wx.VERSION_STRING >= '3.0.0.0': 
     1836            tb = wx.ToolBar(self, style=wx.TB_HORIZONTAL | wx.TB_FLAT) 
     1837            sizer = wx.BoxSizer(wx.VERTICAL) 
     1838            sizer.Add(tb, 0, wx.EXPAND) 
     1839            self.SetSizer(sizer) 
     1840        else: 
     1841            tb = self.CreateToolBar(wx.TB_HORIZONTAL | wx.TB_FLAT) 
    18341842        open_bmp = wx.ArtProvider.GetBitmap(wx.ART_FILE_OPEN, wx.ART_TOOLBAR,  
    18351843                                            tsize) 
Note: See TracChangeset for help on using the changeset viewer.