Hi,
now that i have a lot of spare time, i want to learn how to create a GUI.
there is a way to retrieve the list of .root files that are in my directory?i mean, the way the TBrowser does. I need it to put it in a TGListBox.
Thank you
Amir
Hi,
now that i have a lot of spare time, i want to learn how to create a GUI.
there is a way to retrieve the list of .root files that are in my directory?i mean, the way the TBrowser does. I need it to put it in a TGListBox.
Thank you
Amir
Hi,
you can look at the code in TChain::Add(const char *name, Long64_t nentries).
Cheers, Axel.
thank you very much for the suggestion!
Amir
Check tutorials/guitest.C
TestDirList, TestFileList examples.
TestFileList example also shows how to browse content of ROOT file.
[quote=“Almucantarat”]
there is a way to retrieve the list of .root files that are in my directory?Amir[/quote]
I think it is not quite clear (yet) what do you want. Do you want something like this
root.bnl.gov/QtRoot/expert/26.03 … Dialog.png
See:
root.bnl.gov/QtRoot/htmldoc/src/ … log.C.html ?
and discussion:
lists.bnl.gov/pipermail/qt-root- … 00036.html
thank you all for the suggestions!
i’ve solved creating a temporary .txt file with
system(ls *.root>>fILeS.txt)
reading it, and then using the entries in my script.
But your solutions are much more elegant, i’ll try.
Thank you
Amir