Hello all again,
I have tried to build an example of a Root GUI with a couple of buttons
with pyroot only (no qt here).
I managed to have it almost working :
+ the window shows up with the canvas inside and I can close it safely
with the cross
+ the window can be resized or moved with no problems
The problem is that I cannot make the "Connect" between a button and a function, a the connect methode ask for a void pointer (usually 'this' in c++) that I cannot provide (using 'self' gives a seg. fault).
Here is the main :
tgwindow = ROOT.gClient.GetRoot()
window = gMainWindow(tgwindow, 200, 200)
ROOT.gClient.WaitFor(window.MainFrame)
The last line is the trick I found, not to have the application hanging
up...
See the script attached and comments inside,
Best Regards,
Johan
This archive was generated by hypermail 2.2.0 : Wed Jan 17 2007 - 23:50:00 CET