On Sun, Aug 2, 2015 at 6:14 PM, Stefan Karpinski <[email protected]> wrote:
> This is a little too vague to understand what's causing your confusion.
> Could you provide some code examples?
>
> On Sun, Aug 2, 2015 at 3:15 PM, Forrest Curo <[email protected]> wrote:
>>
>> I have a program which uses Tk and Cairo to draw a gameboard in a window.
>> I would like to put this as a function in a larger program; but the window
>> and board persist and remain accessible only while the loop in that program
>> continues to run.
>>
>> Okay, then, if I want to avoid clutter in the parts of the program that
>> actually do anything, I can put them into a function and call that function
>> each time the loop repeats....
>>
>> This works, but I get a warning: 'requiring "goguts" did not define a
>> corresponding module.'
>>
>> If I put the words "module" and "end" around my function, I no longer get
>> the warning, but the arrangement stops working!
>>
>> Functions and variables defined in the original program stop being
>> recognized in the new module; and if I put them into a third module it all
>> turns to muddle.

The only issue I can guess is that you need to import the parent
module in the child module.

As Stefan said, code example would be nice.

>>
>> Should I just leave out the stuff about 'module' and go on getting the
>> warning? -- or is there some way this kind of looping structure is properly
>> supposed to be handled?
>>
>

Reply via email to