[melbourne-pug] Variable Inheritence between modules. I have no idea!

2014-09-11 Thread David Crisp
Hello, I've managed to muddle my way through python for the last while and have finally come up with something I dont know how to deal with. (I have included a simplified code group below that represents what m trying to do and see) I have a main module (test6.py) which calls a configurati

Re: [melbourne-pug] Variable Inheritence between modules. I have no idea!

2014-09-11 Thread Mike Dewhirst
On 12/09/2014 12:11 PM, David Crisp wrote: Hello, I've managed to muddle my way through python for the last while and have finally come up with something I dont know how to deal with. (I have included a simplified code group below that represents what m trying to do and see) I have a main modu

Re: [melbourne-pug] Variable Inheritence between modules. I have no idea!

2014-09-11 Thread David Crisp
On Fri, 12 Sep 2014, Mike Dewhirst wrote: On 12/09/2014 12:11 PM, David Crisp wrote: Hello, class MainWindow(): def __init__(self): This class doesn't get "configuration" declared or passed in or otherwise made available to it. You could do ... def __init__(self, configuration

Re: [melbourne-pug] Variable Inheritence between modules. I have no idea!

2014-09-11 Thread William ML Leslie
On 12 September 2014 12:11, David Crisp wrote: > How do I read the configuration opbject from within test7 when it is > called from test6?I dont really want to call it from every module that > needs it as there is meant to be some write back functionality happening to > a configuration file a

Re: [melbourne-pug] Variable Inheritence between modules. I have no idea!

2014-09-11 Thread David Crisp
On Fri, 12 Sep 2014, William ML Leslie wrote: On 12 September 2014 12:11, David Crisp wrote: How do I read the configuration opbject from within test7 when it is called from test6?I dont really want to call it from every module that needs it as there is meant to be some write back funct