Changeset 5251ec6 in sasview for src/sas/sasview


Ignore:
Timestamp:
Oct 11, 2018 2:20:56 PM (6 years ago)
Author:
Paul Kienzle <pkienzle@…>
Branches:
master, magnetic_scatt, release-4.2.2, ticket-1009, ticket-1249
Children:
98b9f32
Parents:
67ed543
Message:

improved support for py37 in sasgui

Location:
src/sas/sasview
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • src/sas/sasview/sasview.py

    r1270e3c r5251ec6  
    4242 
    4343        from sas.sasgui.guiframe.gui_manager import SasViewApp 
     44        from sas.sasgui.guiframe.gui_style import GUIFRAME_ICON 
    4445        self.gui = SasViewApp(0) 
     46        GUIFRAME_ICON.load_icons() 
    4547        if sys.platform == "darwin": 
    4648            self.check_sasmodels_compiler() 
     
    228230        logger.error("Wx version: error reading version") 
    229231 
    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() 
    232239    #wxcruft.trace_new_id() 
    233240    #Always use private .matplotlib setup to avoid conflicts with other 
  • src/sas/sasview/welcome_panel.py

    rb963b20 r5251ec6  
    22    Welcome page 
    33""" 
    4 import wx 
    5 import wx.aui 
    6 import wx.lib.hyperlink 
    74import os.path 
    85import os, sys 
    96 
     7import wx 
     8import wx.aui 
     9try: 
     10    # CRUFT: wx 4 moved hyperlink to wx.lib.agw 
     11    from wx.lib import hyperlink 
     12except ImportError: 
     13    from wx.lib.agw import hyperlink 
    1014from wx.lib.scrolledpanel import ScrolledPanel 
    1115 
     
    115119        send_ticket += "help@sasview.org" 
    116120        self.hyperlink_paper = \ 
    117             wx.lib.hyperlink.HyperLinkCtrl(self, -1, 
     121            hyperlink.HyperLinkCtrl(self, -1, 
    118122                                           send_ticket, URL=config._license) 
    119123 
  • src/sas/sasview/wxcruft.py

    r914ba0a r5251ec6  
    44import wx 
    55from wx import Timer 
    6 import wx._misc 
    76 
    87def call_later_fix(): 
     
    1615 
    1716def NewId(): 
     17    import wx._misc 
    1818    id = wx._misc.NewId() 
    1919    path, line, function = _get_caller() 
Note: See TracChangeset for help on using the changeset viewer.