Changeset 5cfa884 in sasview


Ignore:
Timestamp:
Apr 21, 2013 3:00:41 PM (12 years ago)
Author:
Jae Cho <jhjcho@…>
Branches:
master, ESS_GUI, ESS_GUI_Docs, ESS_GUI_batch_fitting, ESS_GUI_bumps_abstraction, ESS_GUI_iss1116, ESS_GUI_iss879, ESS_GUI_iss959, ESS_GUI_opencl, ESS_GUI_ordering, ESS_GUI_sync_sascalc, costrafo411, magnetic_scatt, release-4.1.1, release-4.1.2, release-4.2.2, release_4.0.1, ticket-1009, ticket-1094-headless, ticket-1242-2d-resolution, ticket-1243, ticket-1249, ticket885, unittest-saveload
Children:
18e1f28
Parents:
31ac4a1
Message:

file dialog bug on MAC: ImageViewer?

File:
1 edited

Legend:

Unmodified
Added
Removed
  • calculatorview/src/sans/perspectives/calculator/image_viewer.py

    rae84427 r5cfa884  
    1717from sans.dataloader.manipulations import reader2D_converter 
    1818_BOX_WIDTH = 60 
     19IS_WIN = True 
    1920if sys.platform.count("win32") > 0: 
    2021    _DIALOG_WIDTH = 400 
    2122else: 
    2223    _DIALOG_WIDTH = 480 
     24    IS_WIN = False 
    2325 
    2426class ImageView: 
     
    9193        elist = ["All images (*.png, *.bmp, *.gif, *.jpg, *.tif, *.tiff) | \ 
    9294                *.png; *.bmp; *.gif; *.jpg; *.tif; *.tiff",  
    93                 "PNG files (*.png) | *.png",  
    94                 "BMP files (*.bmp) | *.bmp",  
    95                 "GIF files (*.gif) | *.gif", 
    96                 "JPG files (*.jpg) | *.jpg", 
    97                 "TIF files (*.tif) | *.tif", 
    98                 "TIFF files (*.tiff) | *.tiff"] 
     95                "PNG files (*.PNG, *.png) | *.png",  
     96                "BMP files (*.BMP, *.bmp) | *.bmp",  
     97                "GIF files (*.GIF, *.gif) | *.gif", 
     98                "JPG files (*.JPG, *.jpg) | *.jpg", 
     99                "TIF files (*.TIF, *.tif) | *.tif", 
     100                "TIFF files (*.TIFF, *.tiff) | *.tiff"] 
     101        if not IS_WIN: 
     102            del elist[0] 
     103        elist.append("All files (*.*) | *.*") 
    99104        wlist = '|'.join(elist)         
    100105        style = wx.OPEN|wx.FD_MULTIPLE 
Note: See TracChangeset for help on using the changeset viewer.