Ignore:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/sas/sasgui/perspectives/calculator/image_viewer.py

    r412e9e8b ra1b8fee  
    5959            _, extension = os.path.splitext(basename) 
    6060            try: 
    61                 # Note that matplotlib only reads png natively. 
    62                 # Any other formats (tiff, jpeg, etc) are passed 
    63                 # to PIL which seems to have a problem in version 
    64                 # 1.1.7 that causes a close error which shows up in  
    65                 # the log file.  This does not seem to have any adverse 
    66                 # effects.  PDB   --- September 17, 2017. 
    6761                img = mpimg.imread(file_path) 
    6862                is_png = extension.lower() == '.png' 
     
    9589        if location is None: 
    9690            location = os.getcwd() 
    97         wildcard="Images (*.bmp;*.gif;*jpeg,*jpg;*.png;*tif;*.tiff)|*bmp;\ 
    98             *.gif; *.jpg; *.jpeg;*png;*.png;*.tif;*.tiff|"\ 
    99             "Bitmap (*.bmp)|*.bmp|"\ 
    100             "GIF (*.gif)|*.gif|"\ 
    101             "JPEG (*.jpg;*.jpeg)|*.jpg;*.jpeg|"\ 
    102             "PNG (*.png)|*.png|"\ 
    103             "TIFF (*.tif;*.tiff)|*.tif;*tiff|"\ 
    104             "All Files (*.*)|*.*|" 
    105  
    106         dlg = wx.FileDialog(self.parent, "Image Viewer: Choose an image file", 
    107                             location, "", wildcard, style=wx.FD_OPEN 
    108                             | wx.FD_MULTIPLE) 
     91        dlg = wx.FileDialog(self.parent, "Image Viewer: Choose a image file", 
     92                            location, "", "", style=wx.FD_OPEN | wx.FD_MULTIPLE) 
    10993        if dlg.ShowModal() == wx.ID_OK: 
    11094            path = dlg.GetPaths() 
Note: See TracChangeset for help on using the changeset viewer.