Changeset a5e1b6ca in sasview for src/sas/sasgui/guiframe
- Timestamp:
- Apr 1, 2019 1:11:34 PM (6 years ago)
- Branches:
- ticket-1249
- Children:
- 0dde203
- Parents:
- 9305b46
- Location:
- src/sas/sasgui/guiframe
- Files:
-
- 2 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:
Note: See TracChangeset
for help on using the changeset viewer.