I have created a class toolbar
it's working nice
Now how do I bind an event <MOTION>
the creation of toolbar as follows
constructor { arg }
set FrmToolbar $arg
}
method show { arg } {
frame $FrmToolbar -borderwidth 2 -background grey -relief raised
frame $FrmToolbar.frminner -borderwidth 1
image create photo imgfileile -file NF.gif
label $FrmToolbar.frminner.image -image imgfileile
pack $FrmToolbar -side top -fill x
pack $FrmToolbar.frminner -side top -fill x
pack $FrmToolbar.frminner.image -side left -fill x
}
Now i want to bind an event for this toolbar
I tried as follows but it did not
bind {$FrmToolbar.frminner.image } <Motion> {
tk_messageBox -icon info -message "You have selected Sss "
}
it's working nice
Now how do I bind an event <MOTION>
the creation of toolbar as follows
constructor { arg }
set FrmToolbar $arg
}
method show { arg } {
frame $FrmToolbar -borderwidth 2 -background grey -relief raised
frame $FrmToolbar.frminner -borderwidth 1
image create photo imgfileile -file NF.gif
label $FrmToolbar.frminner.image -image imgfileile
pack $FrmToolbar -side top -fill x
pack $FrmToolbar.frminner -side top -fill x
pack $FrmToolbar.frminner.image -side left -fill x
}
Now i want to bind an event for this toolbar
I tried as follows but it did not
bind {$FrmToolbar.frminner.image } <Motion> {
tk_messageBox -icon info -message "You have selected Sss "
}