Changeset f7bead2 in sasview for src/sans/guiframe/gui_manager.py


Ignore:
Timestamp:
Apr 4, 2014 11:49:57 AM (10 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:
eacf6a8c
Parents:
f87dc4c
Message:

Re #212 Fix default-view dialog.

File:
1 edited

Legend:

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

    rf309303 rf7bead2  
    14511451        Build a panel to allow to edit Mask 
    14521452        """ 
    1453          
    14541453        from sans.guiframe.startup_configuration \ 
    14551454        import StartupConfiguration as ConfDialog 
    14561455         
    1457         self.panel = ConfDialog(parent=self, gui=self.__gui_style) 
    1458         self.panel.ShowModal() 
    1459  
    1460                  
     1456        dialog = ConfDialog(parent=self, gui=self.__gui_style) 
     1457        result = dialog.ShowModal() 
     1458        if result == wx.ID_OK: 
     1459            dialog.write_custom_config() 
     1460            # post event for info 
     1461            wx.PostEvent(self, StatusEvent(status="Wrote custom configuration", info='info')) 
     1462        dialog.Destroy() 
     1463         
    14611464    def _add_menu_application(self): 
    14621465        """ 
Note: See TracChangeset for help on using the changeset viewer.