Too much verbosity

Hello,

I get

(Bool_t)1

printed on the terminal everytime my mouse moves over a TCanvas when I do the following in Python

import ROOT

def pp():
pass

cnvs = ROOT.TCanvas(“x1”,“x1”)
cnvs.AddExec(“xxx”,‘TPython::Exec(“pp();”)’)

Is there a way of getting rid of that message ?

Thanks in advance

Carlos

Carlos,

haven’t tried, but normal interactive RINT will not print the output of a line if the line is ended with a semi-colon ‘;’. So this:cnvs.AddExec("xxx",'TPython::Exec("pp();");')may do the trick. (Conversely, the ‘;’ in Exec() is unnecessary, since python doesn’t care.)

HTH,
Wim

Thanks. That was it !!