28.3 No-Action Widgets

The following table lists the widgets that do not accept actions:

Class

Example

Reference

Tk.canvas

Chapter 6 of ``Window Programming in Mozart''

canvas

Tk.entry

Section 5.7 of ``Window Programming in Mozart''

entry

Tk.frame

Section 3.3 of ``Window Programming in Mozart''

frame

Tk.label

Section 3.5 of ``Window Programming in Mozart''

label

Tk.listbox

Section 5.9 of ``Window Programming in Mozart''

listbox

Tk.menu

Section 5.4 of ``Window Programming in Mozart''

menu

Tk.menubutton

Section 5.4 of ``Window Programming in Mozart''

menubutton

Tk.message

Section 3.7 of ``Window Programming in Mozart''

message

Tk.text

Chapter 7 of ``Window Programming in Mozart''

text

All above mentioned classes provide the following methods:

tkInit

tkInit(parent:+WidgetO ...)

Initializes the widget object and creates the widget.

The field WidgetO for the special feature parent must be a tickle object. self becomes a slave of WidgetO.

tk

tk(...)

Sends a command for self to the graphics engine.

tkReturn

tkReturn(... ?S)
tkReturnString(... 
?S)
tkReturnAtom(... 
?A)
tkReturnInt(... 
?IB)
tkReturnFloat(... 
?FB)
tkReturnList(... 
?Ss)
tkReturnListString(... 
?Ss)
tkReturnListAtom(... 
?As)
tkReturnListInt(... 
?IBs)
tkReturnListFloat(... 
?FBs)

Sends a command for self to the graphics engine and returns the result in the field with the highest integer feature.

tkBind

tkBind(event:  EventV 
       action: 
Action  <= _
       args:   
Args    <= nil
       append: 
AppendB <= false 
       break:  
BreakB  <= false)

Defines an event binding for self. Events are described in Section 5.5 of ``Window Programming in Mozart'' and Section 28.2.3.

tkClose

tkClose()

Closes the widget object and destroys the widgets and all slave widgets. Further object application of self raises an exception.


Denys Duchier, Leif Kornstaedt, Martin Homik, Tobias Müller, Christian Schulte and Peter Van Roy
Version 1.4.0 (20080702)