Changeset 7c7fe67 in sasview


Ignore:
Timestamp:
Apr 26, 2011 2:06:20 PM (14 years ago)
Author:
Gervaise Alina <gervyh@…>
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:
9c35257
Parents:
60642b4
Message:

commit icon for guiframe and plot 2d in separated plot on new plot

File:
1 edited

Legend:

Unmodified
Added
Removed
  • guiframe/gui_manager.py

    r168a845 r7c7fe67  
    109109            if os.path.isfile(ico_file): 
    110110                self.SetIcon(wx.Icon(ico_file, wx.BITMAP_TYPE_ICO)) 
     111            else: 
     112                ico_file = os.path.join(os.path.dirname(os.path.sys.path[0]), 
     113                             'images', 'ball.ico') 
     114                if os.path.isfile(ico_file): 
     115                    self.SetIcon(wx.Icon(ico_file, wx.BITMAP_TYPE_ICO)) 
    111116         
    112117        ## Application manager 
     
    16831688            else: 
    16841689                #if not append then new plot 
    1685                 new_plot.group_id = GROUP_ID 
     1690                from sans.guiframe.dataFitting import Data2D 
     1691                if (Data2D, new_plot.__class__): 
     1692                    #for 2 D always plot in a separated new plot 
     1693                    new_plot.group_id = wx.NewId() 
     1694                else: 
     1695                    # plot all 1D in a new plot 
     1696                    new_plot.group_id = GROUP_ID 
    16861697            title = "PLOT " + str(new_plot.title) 
    16871698            wx.PostEvent(self, NewPlotEvent(plot=new_plot, 
Note: See TracChangeset for help on using the changeset viewer.