Changeset 5251ec6 in sasview for src/sas/sasview
- Timestamp:
- Oct 11, 2018 2:20:56 PM (6 years ago)
- Branches:
- master, magnetic_scatt, release-4.2.2, ticket-1009, ticket-1249
- Children:
- 98b9f32
- Parents:
- 67ed543
- Location:
- src/sas/sasview
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
src/sas/sasview/sasview.py
r1270e3c r5251ec6 42 42 43 43 from sas.sasgui.guiframe.gui_manager import SasViewApp 44 from sas.sasgui.guiframe.gui_style import GUIFRAME_ICON 44 45 self.gui = SasViewApp(0) 46 GUIFRAME_ICON.load_icons() 45 47 if sys.platform == "darwin": 46 48 self.check_sasmodels_compiler() … … 228 230 logger.error("Wx version: error reading version") 229 231 230 from . import wxcruft 231 wxcruft.call_later_fix() 232 # TODO: Do we need the call later fix for wx 3? Or is it wx < 3 only? 233 if "phoenix" in wx.PlatformInfo: 234 #wx.NewId = wx.Window.NewControlId 235 pass 236 else: 237 from . import wxcruft 238 wxcruft.call_later_fix() 232 239 #wxcruft.trace_new_id() 233 240 #Always use private .matplotlib setup to avoid conflicts with other -
src/sas/sasview/welcome_panel.py
rb963b20 r5251ec6 2 2 Welcome page 3 3 """ 4 import wx5 import wx.aui6 import wx.lib.hyperlink7 4 import os.path 8 5 import os, sys 9 6 7 import wx 8 import wx.aui 9 try: 10 # CRUFT: wx 4 moved hyperlink to wx.lib.agw 11 from wx.lib import hyperlink 12 except ImportError: 13 from wx.lib.agw import hyperlink 10 14 from wx.lib.scrolledpanel import ScrolledPanel 11 15 … … 115 119 send_ticket += "help@sasview.org" 116 120 self.hyperlink_paper = \ 117 wx.lib.hyperlink.HyperLinkCtrl(self, -1,121 hyperlink.HyperLinkCtrl(self, -1, 118 122 send_ticket, URL=config._license) 119 123 -
src/sas/sasview/wxcruft.py
r914ba0a r5251ec6 4 4 import wx 5 5 from wx import Timer 6 import wx._misc7 6 8 7 def call_later_fix(): … … 16 15 17 16 def NewId(): 17 import wx._misc 18 18 id = wx._misc.NewId() 19 19 path, line, function = _get_caller()
Note: See TracChangeset
for help on using the changeset viewer.