From: Kris R. <kr...@kr...> - 2001-08-07 16:17:59
|
I've prepared my first contribution to the new installer project, available at http://www.kraney.com/installer/more_installer.zip. It contains: - installer::bg_download provides a high-level interface for doing long-running batch downloads. Ultimately, this will automatically handle resuming files that were partially downloaded and possibly authentication of downloaded files. For now it just provides basic functionality - installer::text_download same as bg_download, but pre-configured to have a nice-looking progress output on stdout. - installer::gui_download same as bg_download, but pre-configured to show a status window. Takes an optional "-parent" flag, in which case it will embed the status into the parent widget passed in, rather than creating a new window. - installer::url provides a set of commands similar to the "file" command to deal with url strings. Still fairly incomplete, only the subset useful in the above commands has been implemented. All three of the download commands take the same arguments, with the addition of "-parent" on gui_download. Here's a simple example usage: installer::text_download \ -base http://prdownloads.sourceforge.net/tclish \ -urls {tclish-linux tclish-solaris tclish-aix} -block 1 It's extracted from tclish but refined to work well as library code. This is intended to drop directly into Steve's extension installer code with a minimum of fuss, to provide a nicer UI. Later, - Kris Raney |