> > Please provide a small reproduction of the problem via pastebin or gist. > After Roberts suggestion to correct a naming issue, I can't see anything > else wrong in your small snippets of code.
I agree, a repro would help. Also, I do not see a call to pushButton() in your create_window(), it is just defined there. Maybe you are calling it somewhere but we do not see that in your example code. Of course, you would have to call it within the scope of create_window(). Another very minorish comment would be your use mixed 'snake case' (create_window()) and 'lower camel case' (pushButton()) in function signatures. It is recommend to use a uniform naming convention. So either use create_window() with push_button() or use createWindow() with pushButton() Also, a few points about your use of the term closure - What you have is simply a nested function. On the other hand, a CLOSURE is a function object that remembers values in enclosing scopes regardless of whether those scopes are still present in memory. You can find more about them here <http://www.shutupandship.com/2012/01/python-closures-explained.html> On Sat, Oct 29, 2016 at 3:21 AM, Justin Israel <justinisr...@gmail.com> wrote: > > > On Sat, 29 Oct 2016, 7:18 AM Padraig O Cuinn < > patchquinnanimat...@gmail.com> wrote: > >> I don’t get any errors it just doesn’t pass but it does freeze up on me. >> > Please provide a small reproduction of the problem via pastebin or gist. > After Roberts suggestion to correct a naming issue, I can't see anything > else wrong in your small snippets of code. > >> >> >> Padraig O Cuinn >> >> Technical Director / Artist >> >> -- >> You received this message because you are subscribed to the Google Groups >> "Python Programming for Autodesk Maya" group. >> To unsubscribe from this group and stop receiving emails from it, send an >> email to python_inside_maya+unsubscr...@googlegroups.com. >> To view this discussion on the web visit https://groups.google.com/d/ >> msgid/python_inside_maya/005c01d23147%24b83f7050% >> 2428be50f0%24%40Gmail.com >> <https://groups.google.com/d/msgid/python_inside_maya/005c01d23147%24b83f7050%2428be50f0%24%40Gmail.com?utm_medium=email&utm_source=footer> >> . >> For more options, visit https://groups.google.com/d/optout. >> > -- > You received this message because you are subscribed to the Google Groups > "Python Programming for Autodesk Maya" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to python_inside_maya+unsubscr...@googlegroups.com. > To view this discussion on the web visit https://groups.google.com/d/ > msgid/python_inside_maya/CAPGFgA1h_A1r4qeos06OQpC9Gjr5yPF- > CaSexvHEAe5Rcquyzg%40mail.gmail.com > <https://groups.google.com/d/msgid/python_inside_maya/CAPGFgA1h_A1r4qeos06OQpC9Gjr5yPF-CaSexvHEAe5Rcquyzg%40mail.gmail.com?utm_medium=email&utm_source=footer> > . > > For more options, visit https://groups.google.com/d/optout. > -- -- You received this message because you are subscribed to the Google Groups "Python Programming for Autodesk Maya" group. To unsubscribe from this group and stop receiving emails from it, send an email to python_inside_maya+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/python_inside_maya/CAPaTLMSXeOESo4q1aYW0v1DrEGW5sraLJri1qi4aL4HskxTAfw%40mail.gmail.com. For more options, visit https://groups.google.com/d/optout.