Version 4 of ipentry

Updated 2003-07-26 12:30:12

documentation can be found at http://tcllib.sourceforge.net/doc/ipentry.html

escargo 25 Jul 2003 - As someone who has spent time testing network devices, I expected a bit more function out of this widget.

For example, I have needed to initialize ethernet addresses and been required to enter three different IP addresses, each with different restrictions:

  1. The netmask for the interface (effectively a string of ones followed by a string of zeroes for a total of 32 bits).
  2. The IP address for the interface (a value that must be consistent with the netmask).
  3. The broadcast address for the interface (a value that must be consistent with the netmask and the IP address.

Does this ipentry have a validator mechanism so that values can be checked against other values for consistency?

AF - i think i assumed that kind of validation would be done when the user clicks "ok" instead of actually restricting the input to a valid netmask. i suppose some validation hooks could be added in the style of the entry widget. you could also "prompt" a user by binding to FocusOut on one entry and if its complete inserting the first quads of a bcast addr in another entry and setting the icursor


well, this is open source - if someone wants to patch the code and turn it in to give more functionality, that's always possible...


Category Command, a part of tklib, a set of tk-related extension/widgets.

Category GUI