Ticket #8690 (assigned)
Improve LoadDialog created from Python when file not found
Reported by: | Peter Parker | Owned by: | Nick Draper |
---|---|---|---|
Priority: | trivial | Milestone: | Backlog |
Component: | GUI | Keywords: | |
Cc: | Blocked By: | ||
Blocking: | Tester: |
Description
We had some feedback in the recent Mantid Training Course whereby it was suggested that LoadDialogs should be more explicit when informing the user that a file was not found. Consider the following code which is needed in the solution to one of the exercises:
LoadDialog( "LOQ48097", OutputWorkspace="small_angle", LoadMonitors="Separate", Enable="Filename,SpectrumList", Disable="SpectrumMin,SpectrumMax")
If the default "LOQ48097" run is not on a user's search path then the dialog will not show any of the disabled/enabled fields as was the script-writers intention, and instead the script-user is presented with only the Filename and OutputWorkspaces fields with the standard Mantid red asterisk beside them.
My personal opinion is that the current functionality is fine, albeit slightly unintuitive for new users who may not spot the asterisks and are expecting a different-looking dialog box. Perhaps the script-writer could guard against this if they wish by doing their own FileFinder check to make sure the default run is there before opening the dialog box?
Nick, this is obviously a low priority ticket, but I've set you as the owner to solicit any comments you might have, and so that you can either set the ticket as "Wont Fix" or assign it elsewhere as you see fit.