Changeset c572e5e in sasview for sansguiframe/src


Ignore:
Timestamp:
Sep 23, 2011 4:08:37 PM (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:
4c2c93f
Parents:
e89c135
Message:

minor fix: remove plot id in panels dic of guiframe when the panel removed

Location:
sansguiframe/src/sans/guiframe
Files:
2 edited

Legend:

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

    rd03a356 rc572e5e  
    973973        captions = self._get_plotpanel_captions() 
    974974        while (1): 
    975             self.graph_num += 1 
    976975            caption = windowcaption + '%s'% str(self.graph_num) 
    977976            if caption not in captions: 
    978977                break 
     978            self.graph_num += 1 
    979979 
    980980        p.window_caption = caption 
     
    16701670            wx.CallAfter(self._mgr.Update) 
    16711671            #delete uid number not str(uid) 
    1672             if uid in self.plot_panels.keys(): 
    1673                 del self.plot_panels[uid] 
     1672            if ID in self.plot_panels.keys(): 
     1673                del self.plot_panels[ID] 
     1674            if ID in self.panels.keys(): 
     1675                del self.panels[ID] 
    16741676            return  
    16751677       
  • sansguiframe/src/sans/guiframe/local_perspectives/plotting/plotting.py

    rd97dd6f rc572e5e  
    258258            self.delete_menu_item(panel.window_caption, panel.uid) 
    259259            del self.plot_panels[group_id] 
    260             #self.parent.delete_panel(uid) 
    261260            return True 
    262261 
Note: See TracChangeset for help on using the changeset viewer.