Dear all,
I’m trying to build a GUI using PyROOT.
From Wim’s comments elsewhere, it seems that $ROOTSYS/tutorials/pyroot/gui_ex.py should show the recommended way. However, this example does not seem robust:
- when I run it as python gui_ex.py, it just segfaults
- when I run it from ipython, a window opens up.
2.1 If I close it using the window manager, all appears well. But when I run it again, it segfaults.
2.2 If I close it using the “Exit” button, it hangs for a while then segfaults
On the plus side, the “Draw” button seems to work well.
BTW: for those trying this at home, it tends to mess up the terminal. “stty sane” is your friend (yet another hint from Wim’s old posts).
Does anyone have a working example of opening a GUI window, displaying some ROOT object in it, and closing that window that properly handles all the objects and the lifetimes (e.g. can be re-entered)?
many thanks,
Amnon Harel