Practical example—the Hibernator application
Some time ago, I discovered that I needed a convenient way to hibernate my Windows-controlled PC after a specified amount of time. Of course, there were plenty of ways to achieve this, but what I really needed was an easy-to-use timer-like application, and that is why Hibernator was created.
Describing in detail how this application works is beyond the scope of this book, as we do not focus on GUI creation, but Hibernator is a perfect example of a portable standalone Tcl application that is successfully run almost every day. If you are interested in how the graphical interface is created, feel free to inspect the source of this application.
All the required files are stored in the Hibernator directory, displayed in the following structure:
The hibernator.vfs
directory holds the entire virtual file system of the application, and contains mandatory items such as the lib
directory and the main.tcl
initial script file.
The lib
directory contains two...