Hi all,
I decided to put all the classes in one file as a workaround, but it still does not work! I define two classes in a single python file, and then load the file with TPython::LoadMacro. I then can't access methods of the class that was defined first from ROOT.
Cheers,
Marius
On 14/03/2011 17:21, Marius Bjørnstad wrote:
> Hi,
>
> Thanks for checking it out!
>
> On 14/03/2011 17:00, Brett Viren wrote:
>> You need to define the methods to take "self" as their first argument. >> You can run your example in plain Python to see it isn't liked there >> either.
>> But, besides that, the error you get is confusing. It seems to hint at >> some problem in TPython. >>
This archive was generated by hypermail 2.2.0 : Tue Mar 15 2011 - 17:50:01 CET