ipentry(n)
π NAME π
Okay so this is ipentry(n), the manual page for ipentry β literally an IP address entry widget, and the package is giving βput an IP in a slick little entry fieldβ main character energy. No cap, thatβs the name.
π°οΈ SYNOPSIS π°οΈ
Hereβs the exact spellbook, bestie, characters preserved and all:
package require Tcl 8.4
package require Tk 8.4
package require ipentry ?0.3?
::ipentry::ipentry pathName ?option value...?
::ipentry::ipentry6 pathName ?option value...?
pathName complete
pathName get
pathName insert iplist
pathName icursor index
pathName configure option value...
pathName cget option
π DESCRIPTION π
This package provides a widget for entering an IP address. Itβs literally that. π
::ipentry::ipentry pathName ?option value...?β creates a new IPv4ipentrywidget and configures it with the given options and their values. Slay.::ipentry::ipentry6 pathName ?option value...?β creates a newipentrywidget for entering an IPv6 address. All options are the same as the IPv4 widget. Obsessed with consistency.
Each widget created with the commands above supports the following methods:
pathName completeβ returns a boolean value.Trueindicates that the entry contains a complete IP address, meaning all fields have a value. In some cases IPv6 addresses are valid when fields are missing, so youβll need to do your own validation to detect that. Lowkey important.pathName getβ returns the contents of the entry as a list consisting of4or8elements. Exactly that.pathName insert iplistβ okay so this one has two flavors:- IPv4: takes a list of
4elements and inserts one into each quad of the entry, in order. All values in the list must be empty or integers. Values outside the range0to255are modified to be within the range. - IPv6: takes a list of
8elements and inserts one into each quad of the entry, in order. All values in the list must be empty or1to4hex digits.
- IPv4: takes a list of
pathName icursor indexβ sets the position of the widgetβs insertion cursor. Only integer values between0and15are valid foripentryand0to31foripentry6. Setting theicursorwill only have an effect if the widget already has the input focus. Focus matters, bestie.pathName configure option value...β modifies the configuration of the widget. For options and their meaning see the widget options section.pathName cget optionβ returns information about the current configuration of the widget, for the specified option. For options and their meaning see the widget options section.
π WIDGET OPTIONS π
Options time. Each one has a Command-Line Switch, Database Name, and Database Class, and we are keeping every single one. No skipping, periodt.
-textvariableβ Command-Line Switch:-textvariable; Database Name:textvariable; Database Class:Variable. The name of a variable which holds the value of the IP address. The value must be a string of the formNNN.NNN.NNN.NNNfor IPv4 orHHHH:HHHH:HHHH:HHHH:HHHH:HHHH:HHHH:HHHHfor IPv6 whereHis a hex digit. The variable will be modified to represent a valid IP address if it is not already.-stateβ Command-Line Switch:-state; Database Name:state; Database Class:State. Specifies one of three states for the entry:normal,disabled, orreadonly.
And now the standard widget options, bestie. They all get the same treatment:
-fontβ Command-Line Switch:-font; Database Name:font; Database Class:Font.-bdβ Command-Line Switch:-bd; Database Name:borderWidth; Database Class:BorderWidth.-fgβ Command-Line Switch:-fg; Database Name:foreground; Database Class:Foreground.-bgβ Command-Line Switch:-bg; Database Name:background; Database Class:Background.-reliefβ Command-Line Switch:-relief; Database Name:relief; Database Class:Relief.-highlightthicknessβ Command-Line Switch:-highlightthickness; Database Name:highlightThickness; Database Class:HighlightThickness.-highlightcolorβ Command-Line Switch:-highlightcolor; Database Name:highlightColor; Database Class:HighlightColor.-highlightbackgroundβ Command-Line Switch:-highlightbackground; Database Name:highlightBackground; Database Class:HighlightBackground.-selectbackgroundβ Command-Line Switch:-selectbackground; Database Name:selectBackground; Database Class:Background.-selectforegroundβ Command-Line Switch:-selectforeground; Database Name:selectForeground; Database Class:Foreground.-selectborderwidthβ Command-Line Switch:-selectborderwidth; Database Name:selectBorderWidth; Database Class:BorderWidth.-disabledbackgroundβ Command-Line Switch:-disabledbackground; Database Name:disabledBackground; Database Class:DisabledBackground.-disabledforegroundβ Command-Line Switch:-disabledforeground; Database Name:disabledForeground; Database Class:DisabledForeground.-readonlybackgroundβ Command-Line Switch:-readonlybackground; Database Name:readonlyBackground; Database Class:ReadonlyBackground.-insertbackgroundβ Command-Line Switch:-insertbackground; Database Name:insertBackground; Database Class:Background.
These are all standard widget options. See options for a description of their meanings and values.
π BUGS, IDEAS, FEEDBACK π
Real talk: this document, and the package it describes, will undoubtedly contain bugs and other problems. Not me being dramatic β thatβs literally what the page says. Please report such in the category ipentry of the Tklib Trackers at http://core.tcl.tk/tklib/reportlist. Please also report any ideas for enhancements you may have for either package and/or documentation. We love feedback, fr fr. π«Ά
π KEYWORDS π
entryip addressnetwork
π CATEGORY π
Widget β thatβs the category, bestie. Iconic.
π Thatβs the whole page β source tklib, version 0.3, and ipentry(n) chilling in the footer date spot. Now go forth and enter those IPs, bestie. π
β¨
π¦ where this page comes from
- alpine 3.24: tk-lib-doc 0.7-r0 Β· TCL
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms