in reply to Tk starting and stopping an autoplay loop using a keybinding
Hi, I suspect Deparse would tell you the problem with ternary?:if/else, its Basic debugging checklist
A)Is this the best way to implement an autoplay function? I tried to use Tk's repeat and timer with no big success. I read all tk callback material but if I understood it correctly a variable used in the callback it is evaluated when the callback is created NOT when it is invoked. How to change this behaviour?
Closures buddy, closures, for your reading pleasure Re: how to use marquee in perl tk?, Re^2: Perl Gtk2 - ->destroy() is Not Causing the Script to Exit, Re^3: tk mainwindow not appearing, Re^3: Tk MainWindow and another TopLevel spawn order (taskbar order LIFO win32)
|
|---|