in reply to Re: Tk programming style
in thread Tk programming style
Your idea for handling the buttons in the activity_configure sub is excellent - very clear and concise. Though I would probably have used a hash instead of @button, and used each instead of splice.
Regarding OO, this has prompted me to review and assess the plethora of Class::* modules on CPAN. Having activity as a class will present a neater way of dealing with the callbacks, as methods, but it still looks that "Next" will be difficult to implement. Can I get the toplevel widget to return me the next frame I wonder?
Regarding the .ini save, I prefer my original, as the heredoc stands out and makes it obvious what is happening. Admittedly, I could refactor the time calculation into a sub - which may become a method in my new class.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^3: Tk programming style
by Aristotle (Chancellor) on Nov 07, 2002 at 14:01 UTC |