Changeset 5d344c6 in sasview for sansguiframe/src


Ignore:
Timestamp:
Oct 18, 2011 10:05:00 AM (13 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:
ccb0f39
Parents:
74dc0a4
Message:

tracking missing ID plots

File:
1 edited

Legend:

Unmodified
Added
Removed
  • sansguiframe/src/sans/guiframe/gui_manager.py

    r58fc26c r5d344c6  
    16591659            if self._mgr.GetPane(self.plot_panels[ID].window_name).IsShown(): 
    16601660                any_shown = True 
    1661                 self.hide_panel(ID) 
     1661                try: 
     1662                    self.hide_panel(ID) 
     1663                except: 
     1664                    print "hide_panel: No such plot id %s" % ID 
    16621665            else: 
    16631666                continue 
     
    16991702        ID = str(uid) 
    17001703        config.printEVT("delete_panel: %s" % ID) 
    1701         caption = self.panels[ID].window_caption 
     1704        try: 
     1705            caption = self.panels[ID].window_caption 
     1706        except: 
     1707            print "delete_panel: No such plot id as %s" % ID 
     1708            return 
    17021709        if ID in self.panels.keys(): 
    17031710            self.panel_on_focus = None 
Note: See TracChangeset for help on using the changeset viewer.