Changeset cb64d86 in sasview
- Timestamp:
- Feb 22, 2019 2:25:03 PM (6 years ago)
- Branches:
- master, magnetic_scatt, release-4.2.2, ticket-1009, ticket-1249
- Children:
- 82d88d5
- Parents:
- 61379c2e
- Location:
- src/sas/sasgui
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
src/sas/sasgui/guiframe/CategoryInstaller.py
r5251ec6 rcb64d86 20 20 21 21 logger = logging.getLogger(__name__) 22 23 if sys.version_info[0] > 2: 24 def json_dump(obj, filename): 25 with open(filename, 'w', newline='\n') as fd: 26 json.dump(obj, fd) 27 else: # CRUFT: python 2.7 support 28 def json_dump(obj, filename): 29 with open(filename, 'wb') as fd: 30 json.dump(obj, fd) 22 31 23 32 class CategoryInstaller(object): … … 171 180 model_enabled_dict) 172 181 173 json .dump(master_category_dict, open(serialized_file, 'w'))182 json_dump(master_category_dict, serialized_file) -
src/sas/sasgui/perspectives/fitting/basepage.py
r5251ec6 rcb64d86 12 12 import logging 13 13 import traceback 14 try: 14 try: # CRUFT: python 2.x 15 15 from Queue import Queue 16 16 except ImportError: -
src/sas/sasgui/plottools/toolbar.py
r5251ec6 rcb64d86 39 39 try: save_figure = NavigationToolbar2WxAgg.save 40 40 except AttributeError: pass 41 41 42 42 def _init_toolbar(self): 43 43 self._parent = self.canvas.GetParent() … … 66 66 # todo: get new bitmap 67 67 # todo: update with code from matplotlib/backends/backend_wx.py 68 is_phoenix = 'phoenix' in wx.PlatformInfo 69 if is_phoenix: # wx phoenix >= 4.0.0b2 68 if 'phoenix' in wx.PlatformInfo: # wx phoenix >= 4.0.0b2 70 69 self.AddCheckTool(self._NTB2_PAN, "Pan", _load_bitmap('move.png'), 71 70 shortHelp='Pan',
Note: See TracChangeset
for help on using the changeset viewer.