1iwidgets::pushbutton − Create and manipulate a push button widget

iwidgets::pushbutton pathName ?options? itk::Widget <‐ iwid‐

3gets::Pushbutton

activeBackground activeForeground background

bitmap borderWidth command

cursor disabledForeground font

foreground highlightBackground highlightColor

highlightThickness image padX

padY state text

underline wrapLength

11See  the  "options"  manual entry for details on the standard op‐
12tions.
13Name:           defaultRing
14Class:          DefaultRing
15Command‐Line Switch:           ‐defaultring
16Boolean describing whether the button displays its  default  ring
17given  in any of the forms acceptable to Tcl_GetBoolean.  The de‐
18fault is false.
19Name:           defaultRingPad
20Class:          Pad
21Command‐Line Switch:           ‐defaultringpad
22Specifies the amount of space to be allocated to the  indentation
23of  the default ring ring given in any of the forms acceptable to

Tcl_GetPixels. The option has no effect if the defaultring op‐

25tion is set to false.  The default is 2 pixels.
26Name:           height
27Class:          Height
28Command‐Line Switch:           ‐height
29Specifies  the height of the button inclusive of any default ring
30given in any of the forms acceptable to Tk_GetPixels.  A value of
31zero  lets  the push button determine the height based on the re‐
32quested height plus highlightring and defaultringpad.
33Name:           width
34Class:          Width
35Command‐Line Switch:           ‐width
36Specifies the width of the button inclusive of any  default  ring
37given in any of the forms acceptable to Tk_GetPixels.  A value of
38zero lets the push button determine the width based  on  the  re‐
39quested width plus highlightring and defaultringpad.
40
41The  iwidgets::pushbutton  command  creates a push button with an
42optional default ring used for default designation and traversal.
43
44The iwidgets::pushbutton command creates a new Tcl command  whose
45name is pathName.  This command may be used to invoke various op‐
46erations on the widget.  It has the following general form: path‐

Name option ?arg arg ...? Option and the args determine the ex‐

48act behavior of the command.  The following commands are possible
49for pushbutton widgets:

flash invoke

51See the "button" manual entry for details on the associated meth‐
52ods.
53

pathName cget option Returns the current value of the configura‐

55tion  option  given by option.  Option may have any of the values
56accepted by the iwidgets::pushbutton command.  pathName configure
57?option? ?value option value ...?  Query or modify the configura‐
58tion options of the widget.  If no option is specified, returns a
59list  describing  all  of the available options for pathName (see

Tk_ConfigureInfo for information on the format of this list). If

option is specified with no value, then the command returns a

62list describing the one named option (this list will be identical
63to  the  corresponding sublist of the value returned if no option
64is specified).  If one or more option−value pairs are  specified,
65then  the command modifies the given widget option(s) to have the
66given value(s);  in  this  case  the  command  returns  an  empty
67string.   Option may have any of the values accepted by the iwid‐

gets::pushbutton command.

69
70Name:           pushbutton
71Class:          Button
72The pushbutton component is the button surrounded by the optional
73default  ring.   See the "button" widget manual entry for details
74on the pushbutton component item.
75
76package require Iwidgets 4.0 iwidgets::pushbutton .pb ‐text "Hel‐
77lo"  ‐command  {puts "Hello World"} ‐defaultring 1 pack .pb ‐padx
7810 ‐pady 10 Bret A. Schuhmacher Mark L. Ulferts pushbutton,  wid‐
79get
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
Impressum