Re: How could I implement a virtual method and override it in python?

2016-09-14 Thread wesley . keeling
On Wednesday, September 14, 2016 at 3:47:52 PM UTC-7, Lawrence D’Oliveiro wrote: > On Thursday, September 15, 2016 at 10:18:09 AM UTC+12, wesley@iugome.com > wrote: > > Helper.py: > > > > def Foo( *args ): > > print ("This is a callback") > > > > def Run: > > Foo() > > > > > > MyMo

How could I implement a virtual method and override it in python?

2016-09-14 Thread wesley . keeling
Hey guys, I will show the code first: Helper.py: def Foo( *args ): print ("This is a callback") def Run: Foo() MyModule.py: import Helper def Foo( *args ): print ("I want to be the new callback") I want to be able to call the Foo method in MyModule.py when it's there f