Changeset a5e1b6ca in sasview for src/sas/sasgui
- Timestamp:
- Apr 1, 2019 1:11:34 PM (6 years ago)
- Branches:
- ticket-1249
- Children:
- 0dde203
- Parents:
- 9305b46
- Location:
- src/sas/sasgui
- Files:
-
- 10 edited
Legend:
- Unmodified
- Added
- Removed
-
src/sas/sasgui/guiframe/data_processor.py
r5251ec6 ra5e1b6ca 79 79 if label_pos != -1 and len(elt) >= separator_pos and\ 80 80 elt[separator_pos] == "[": 81 # the label contain , meaning the range selected is not 81 # the label contain , meaning the range selected is not 82 82 # continuous 83 83 if elt.count(',') > 0: … … 107 107 class SPanel(ScrolledPanel): 108 108 """ 109 ensure proper scrolling of GridPanel 110 111 Adds a SetupScrolling call to the normal ScrolledPanel init. 109 ensure proper scrolling of GridPanel 110 111 Adds a SetupScrolling call to the normal ScrolledPanel init. 112 112 GridPanel then subclasses this class 113 113 114 114 """ 115 115 def __init__(self, parent, *args, **kwds): … … 129 129 grid.GridCellEditor) in order to override two of its methods: 130 130 PaintBackrgound and EndEdit. 131 131 132 132 This is necessary as the sheet module is broken in wx 3.0.2 and 133 133 improperly subclasses grid.GridCellEditor … … 247 247 248 248 249 # The following events must be bound even if CSheet is working 249 # The following events must be bound even if CSheet is working 250 250 # properly and does not need the above re-implementation of the 251 251 # CSheet init method. Basically these override any intrinsic binding … … 313 313 def OnCellChange(self, event): 314 314 """ 315 Overrides sheet.CSheet.OnCellChange. 315 Overrides sheet.CSheet.OnCellChange. 316 316 317 317 Processes when a cell has been edited by a cell editor. Checks for the … … 558 558 """ 559 559 560 # add data to the grid 560 # add data to the grid 561 561 row = 0 562 562 col_name = self.GetCellValue(row, col) … … 583 583 Sets up to insert column into the current grid before the current 584 584 highlighted column location and sets up what to populate that column 585 with. Then calls insert_column method to actually do the insertion. 585 with. Then calls insert_column method to actually do the insertion. 586 586 """ 587 587 … … 604 604 Sets up to insert column into the current grid after the current 605 605 highlighted column location and sets up what to populate that column 606 with. Then calls insert_column method to actually do the insertion. 606 with. Then calls insert_column method to actually do the insertion. 607 607 """ 608 608 … … 758 758 def onContextMenu(self, event): 759 759 """ 760 Method to handle cell right click context menu. 760 Method to handle cell right click context menu. 761 761 762 762 THIS METHOD IS NOT CURRENTLY USED. It is designed to provide a … … 1124 1124 """ 1125 1125 1126 # I Believe this is no longer used now that we have removed the 1126 # I Believe this is no longer used now that we have removed the 1127 1127 # edit menu from the menubar - PDB July 12, 2015 1128 1128 pos = self.GetSelection() … … 1134 1134 Remove the selected column from the grid 1135 1135 """ 1136 # I Believe this is no longer used now that we have removed the 1136 # I Believe this is no longer used now that we have removed the 1137 1137 # edit menu from the menubar - PDB July 12, 2015 1138 1138 pos = self.GetSelection() … … 1637 1637 # We need to grab a WxMenu handle here, otherwise the next one to grab 1638 1638 # the handle will be treated as the Edit Menu handle when checking in 1639 # on_menu_open event handler and thus raise an exception when it hits an 1639 # on_menu_open event handler and thus raise an exception when it hits an 1640 1640 # unitialized object. Alternative is to comment out that whole section 1641 1641 # in on_menu_open, but that would make it more difficult to undo the … … 1690 1690 On Copy from the Edit menu item on the menubar 1691 1691 """ 1692 # I Believe this is no longer used now that we have removed the 1692 # I Believe this is no longer used now that we have removed the 1693 1693 # edit menu from the menubar - PDB July 12, 2015 1694 1694 if event is not None: … … 1702 1702 On Paste from the Edit menu item on the menubar 1703 1703 """ 1704 # I Believe this is no longer used now that we have removed the 1704 # I Believe this is no longer used now that we have removed the 1705 1705 # edit menu from the menubar - PDB July 12, 2015 1706 1706 if event is not None: … … 1714 1714 On Clear from the Edit menu item on the menubar 1715 1715 """ 1716 # I Believe this is no longer used now that we have removed the 1716 # I Believe this is no longer used now that we have removed the 1717 1717 # edit menu from the menubar - PDB July 12, 2015 1718 1718 pos = self.panel.notebook.GetSelection() … … 1733 1733 On remove column from the Edit menu Item on the menubar 1734 1734 """ 1735 # I Believe this is no longer used now that we have removed the 1735 # I Believe this is no longer used now that we have removed the 1736 1736 # edit menu from the menubar - PDB July 12, 2015 1737 1737 pos = self.panel.notebook.GetSelection() … … 1824 1824 location = os.path.dirname(grid.file_name) 1825 1825 dlg = wx.FileDialog(self, "Save Project file", 1826 location, grid.file_name, ext, wx. SAVE)1826 location, grid.file_name, ext, wx.FD_SAVE) 1827 1827 path = None 1828 1828 if dlg.ShowModal() == wx.ID_OK: … … 2009 2009 location = os.path.dirname(self.file_name) 2010 2010 dlg = wx.FileDialog(self, "Save Project file", 2011 location, self.file_name, ext, wx. SAVE)2011 location, self.file_name, ext, wx.FD_SAVE) 2012 2012 path = None 2013 2013 if dlg.ShowModal() == wx.ID_OK: -
src/sas/sasgui/guiframe/gui_manager.py
r34f23c8 ra5e1b6ca 1917 1917 self._default_save_location, "sasview_proj", 1918 1918 extension, 1919 wx. SAVE)1919 wx.FD_SAVE) 1920 1920 if dlg.ShowModal() == wx.ID_OK: 1921 1921 path = dlg.GetPath() … … 2414 2414 dlg = wx.FileDialog(self, "Choose a file", 2415 2415 self._default_save_location, 2416 default_name, wildcard, wx. SAVE)2416 default_name, wildcard, wx.FD_SAVE) 2417 2417 2418 2418 if dlg.ShowModal() == wx.ID_OK: … … 2551 2551 dlg = wx.FileDialog(self, "Choose a file", 2552 2552 self._default_save_location, 2553 default_name, wildcard, wx. SAVE)2553 default_name, wildcard, wx.FD_SAVE) 2554 2554 2555 2555 if dlg.ShowModal() == wx.ID_OK: -
src/sas/sasgui/perspectives/calculator/data_editor.py
r5251ec6 ra5e1b6ca 19 19 _QMAX_DEFAULT = 0.13 20 20 _NPTS_DEFAULT = 50 21 #Control panel width 21 #Control panel width 22 22 if sys.platform.count("darwin") == 0: 23 23 PANEL_WIDTH = 500 … … 196 196 summary = 'No data info available...' 197 197 self.data_summary.SetValue(summary) 198 #self.summary_sizer.Add(self.data_summary, 1, wx.EXPAND|wx.ALL, 10) 198 #self.summary_sizer.Add(self.data_summary, 1, wx.EXPAND|wx.ALL, 10) 199 199 200 200 def _layout_button(self): … … 579 579 wildcard = "CanSAS 1D files(*.xml)|*.xml" 580 580 dlg = wx.FileDialog(self, "Choose a file", 581 self._default_save_location, "", wildcard , wx.SAVE) 581 self._default_save_location, "", wildcard , 582 wx.FD_SAVE) 582 583 583 584 for data in self._data: -
src/sas/sasgui/perspectives/calculator/gen_scatter_panel.py
r34f23c8 ra5e1b6ca 1671 1671 location, "sld_file", 1672 1672 extension, 1673 wx. SAVE)1673 wx.FD_SAVE) 1674 1674 if dlg.ShowModal() == wx.ID_OK: 1675 1675 path = dlg.GetPath() -
src/sas/sasgui/perspectives/corfunc/corfunc_panel.py
r82d88d5 ra5e1b6ca 337 337 dlg = wx.FileDialog(self, "Choose a file", 338 338 default_save_location, \ 339 self.window_caption, "*.crf", wx. SAVE)339 self.window_caption, "*.crf", wx.FD_SAVE) 340 340 if dlg.ShowModal() == wx.ID_OK: 341 341 path = dlg.GetPath() -
src/sas/sasgui/perspectives/fitting/basepage.py
rcb64d86 ra5e1b6ca 676 676 self._manager.parent._default_save_location 677 677 dlg = wx.FileDialog(self, "Choose a file", self._default_save_location, 678 self.window_caption, "*.fitv", wx. SAVE)678 self.window_caption, "*.fitv", wx.FD_SAVE) 679 679 680 680 if dlg.ShowModal() == wx.ID_OK: -
src/sas/sasgui/perspectives/fitting/report_dialog.py
r44e8f48 ra5e1b6ca 49 49 dlg = wx.FileDialog(self, "Choose a file", 50 50 wildcard=self.wild_card, 51 style=wx. SAVE | wx.OVERWRITE_PROMPT | wx.CHANGE_DIR)51 style=wx.FD_SAVE | wx.OVERWRITE_PROMPT | wx.CHANGE_DIR) 52 52 dlg.SetFilterIndex(0) # Set .html files to be default 53 53 -
src/sas/sasgui/perspectives/invariant/invariant_panel.py
r5251ec6 ra5e1b6ca 1255 1255 dlg = wx.FileDialog(self, "Choose a file", 1256 1256 self._default_save_location, \ 1257 self.window_caption, "*.inv", wx. SAVE)1257 self.window_caption, "*.inv", wx.FD_SAVE) 1258 1258 if dlg.ShowModal() == wx.ID_OK: 1259 1259 path = dlg.GetPath() -
src/sas/sasgui/perspectives/invariant/report_dialog.py
r5251ec6 ra5e1b6ca 52 52 dlg = wx.FileDialog(self, "Choose a file", 53 53 wildcard=self.wild_card, 54 style=wx. SAVE | wx.OVERWRITE_PROMPT | wx.CHANGE_DIR)54 style=wx.FD_SAVE | wx.OVERWRITE_PROMPT | wx.CHANGE_DIR) 55 55 dlg.SetFilterIndex(0) # Set .html files to be default 56 56 -
src/sas/sasgui/perspectives/pr/inversion_panel.py
r5251ec6 ra5e1b6ca 282 282 dlg = wx.FileDialog(self, "Choose a file", 283 283 self._default_save_location, 284 self.window_caption, "*.prv", wx. SAVE)284 self.window_caption, "*.prv", wx.FD_SAVE) 285 285 if dlg.ShowModal() == wx.ID_OK: 286 286 path = dlg.GetPath()
Note: See TracChangeset
for help on using the changeset viewer.