RoboDK-API icon indicating copy to clipboard operation
RoboDK-API copied to clipboard

`robolink.Robolink.ShowMessage()` prints message in command line

Open sjohnson-FLL opened this issue 1 year ago • 1 comments

Pretty much the title.

The ShowMessage method of the Robolink class has a line: print(message) after being called. If a CLI uses the RoboDK API, this can be disruptive.

I think either this line should be removed completely or print_msg:str=True should be an optional argument that controls whether the message is also printed to the command line.

sjohnson-FLL avatar Apr 11 '24 23:04 sjohnson-FLL

@RoboDK There are a couple of other functions that prints. Should we add a verbose level?

sambertrdk avatar Apr 17 '24 17:04 sambertrdk

We just removed the debug print for ShowMessage functions. We don't need this debug print. This function used to invoke RoboDK and we kept this print for historical reasons.

With the next RoboDK release we'll now always print blocking popups through STDOUT.

RoboDK avatar Jun 25 '24 11:06 RoboDK