🎉Community Raffle - Win $25

An exclusive raffle opportunity for active members like you! Complete your profile, answer questions and get your first accepted badge to enter the raffle.
Join and Win

Access to Parameters defined in a GUI

User: "Altair Forum User"
Altair Employee
Updated by Altair Forum User

Hey guys,

 

I've got the following tcl code:

 hwt::CreateWindow lala \ -windowtitle 'title' \ -noGeometrySaving \ -cancelButton Cancel \ -acceptButton Okey \ -acceptFunc applyFunction \ -defaultButton Accept \ -minsize 470 100 \ -post;  set recess [::hwt::WindowRecess lala]; set section2 [label $recess.section2 \ -text 'entry: ' \ -justify left \ -anchor nw \ -font [hwt::AppFont]];  pack $section2 -side top -anchor nw -pady 5; hwt::AddPadding $recess -side top -height [hwt::DluHeight 4];  set valueToPrint [ AddEntry $recess.frame2  label       'value:'  labelWidth  40   entryWidth  20  anchor   nw  validate    real  text 200  withoutPacking];  pack $valueToPrint -side top -anchor nw -pady 5;            AddPadding $recess.frame2 width 22 -side left;  EntryInsert $valueToPrint 7000;  proc applyFunction {args} {  tk_messageBox -message 'I don't know how to print the value :-('; }

Now, I'd like to print the Value  'valueToPrint'.

I tried

puts $valueToPrint, but it doesn't work. How can I get access to the parameter defined in the GUI?

 

Thanks for your help.

Mike

Find more posts tagged with

Sort by:
1 - 8 of 81