Changeset 5251ec6 in sasview for src/sas/sasview/welcome_panel.py


Ignore:
Timestamp:
Oct 11, 2018 12: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

File:
1 edited

Legend:

Unmodified
Added
Removed
  • 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 
Note: See TracChangeset for help on using the changeset viewer.