Ticket #1855 (closed: fixed)

Opened 10 years ago

Last modified 5 years ago

Algorithm auto-generated GUI: Have the ability to add a few lines of descriptive text to help guide users.

Reported by: Janik Zikovsky Owned by: Janik Zikovsky
Priority: major Milestone: Iteration 26
Component: Mantid Keywords:
Cc: Blocked By:
Blocking: Tester: Michael Whitty

Description (last modified by Nick Draper) (diff)

  • Perhaps a Algorithm->setHelp("string") function is called in init()
  • This is then displayed, if set, in the GUI

Change History

comment:1 Changed 10 years ago by Janik Zikovsky

  • Status changed from new to accepted

Optional message is possible in MantidUI, but seems unused.

comment:2 Changed 10 years ago by Janik Zikovsky

(In [7230]) Refs #1855: Added ability to display an optional message in an algorithm's auto-generated GUI dialog. Added one for a couple of algorithms.

comment:3 Changed 10 years ago by Janik Zikovsky

(In [7233]) Refs #1855: More quick help in some algorithms

comment:4 follow-up: ↓ 5 Changed 10 years ago by Nick Draper

  • Description modified (diff)

Janik,

The message was added primarily for use in users scripts. It is fine to use it here as well,but if the users sets the message in Python I guess it should overwite any set in the algorithm itself.

I'm thinking of

Load(file1,"ws1", message="Specify the Empty can file")
Load(file1,"ws2", message="Specify the data file")

comment:5 in reply to: ↑ 4 Changed 10 years ago by Janik Zikovsky

I tried the syntax below and got the error: "Load() got an unexpected keyword argument 'message'" looks like the message keyword is not in the python API?

Janik

Replying to Nick Draper:

Janik,

The message was added primarily for use in users scripts. It is fine to use it here as well,but if the users sets the message in Python I guess it should overwite any set in the algorithm itself.

I'm thinking of

Load(file1,"ws1", message="Specify the Empty can file")
Load(file1,"ws2", message="Specify the data file")

comment:6 Changed 10 years ago by Janik Zikovsky

  • Status changed from accepted to verify
  • Resolution set to fixed

works!

comment:7 Changed 10 years ago by Michael Whitty

  • Status changed from verify to verifying
  • Tester set to Michael Whitty

comment:8 Changed 10 years ago by Michael Whitty

  • Status changed from verifying to closed

works.

comment:9 Changed 5 years ago by Stuart Campbell

This ticket has been transferred to github issue 2702

Note: See TracTickets for help on using tickets.