Re: [Pyobjc-dev] step by step tutorial - second edition
Brought to you by:
ronaldoussoren
From: Just v. R. <ju...@le...> - 2003-04-03 21:06:17
|
Jack Jansen wrote: > > - Use 'PyObjCTools.AppHelper.runEventloop()' instead of your main Aaargh, I just noticed this spelling. I feel strongly it should be "runEventLoop" "Event loop" is not one word, so camelcasing it should cause the L to be capitalized. > > function (that should also address your concern about the amount of > > boilerplate code). > > Your other suggestions I have incorporated (or am incorporating right > now, along with Bob's suggestion in private mail that I cater more > for 2.2 users too), and actually I've put this in the document > already too, but it just struck me that it would be a lot easier if > NibClassBuilder would also optionally create the main program. Is it > okay if I add a "--main" option to NibClassBuilder to do this? > > Actually, coming to think of it, does it even have to be optional? > The code is going to be inside an "if __name__ == '__main__':" guard > anyway, so we could always add it. Or not? Since the output of NibClassBuilder always needs to be manually edited anyway, I see nothing against always adding the runEventLoop call. Good idea! Just |