Day 89 is writing the “most dangerous writing” app, where you have to keep typing or the stuff will be gone. The demo was in web format, so I was thinking how I can achieve this, since there are actions, and I think this will involve javaScript (which I don’t know anything about). But then reading harder in the title, I saw the (GUI Desktop App), and that makes this a bit easier. With tkinter only contains a window, a timer (display) and a text field, I should be able to do this. The GUI is fairly easy, and I didn’t get too fancy (I didn’t consider the scroll bar for example or any wrapping), but then we have to think how I can trigger the timer to restart if a key is typed. The window.bind(“<Key”, func) does the trick. Once I figured that out, the rest is easy, just put in count down timer from pomodoro project, and remember to after_cancel the old timer, then it can be done. The project took about fairly long to think, but to write the code, it’s not all that hard.
-
Recent Posts
Recent Comments
Archives
- September 2023
- July 2023
- June 2023
- May 2023
- April 2023
- March 2021
- February 2021
- January 2021
- December 2020
- November 2020
- June 2020
- February 2019
- April 2018
- October 2017
- June 2017
- May 2017
- March 2015
- October 2012
- January 2011
- December 2010
- October 2010
- August 2010
- June 2010
- May 2010
- April 2010
- March 2010
- January 2010
- December 2009
- November 2009
- October 2009
- September 2009
- October 2005
- August 2005
- July 2005
- March 2005
- February 2005
- January 2005
- December 2004
- November 2004
- October 2004
- September 2004
Categories
Meta