Jeff, that did the trick. I have run into a few other anomolies such as being able to specify the "start date". Under the calendar widget setting the textvariable to the data I wanted brought the calendar widget up in the correct place. The dateentry widget is not behaving that way. the entry box portion is coming up readonly and I have not been able to figure out the correct command to set the entry state to 'normal' With all these component pieces not sure if there are steps I must do differently. Any hints would be appreciated.
thanks again, gary ----- Original Message ----- From: Jeff Hobbs <je...@activestate.com> To: gary sachs <conversecoroll...@yahoo.com> Cc: TCLTK-PERL <tcltk@perl.org> Sent: Wednesday, September 28, 2011 2:57 PM Subject: Re: dateentry and calendar widgets On 28/09/2011 1:16 PM, gary sachs wrote: > Trying to use the dateentry widget... > > Tkx::package_require("widget::dateentry");<<<<< line 710 ... > If I try and execute I get the following error... > > can't read "argv0": no such variable at c:\qa\tobserver.pl line 710. > > I looked fro the dateentry widget and do see v0.93 in the tkkit.dll. > > If I comment out line 710, then all runs just fine. Interesting - it seems that embedding into the Perl environment causes Tcl to skip the init parts that would otherwise set ::argv0 (Perl $ARGV[0]). The dateentry.tcl script has some test code at the end that checks to see if you are running itself as the main script to show some demo usage. I would say the best work-around is to do Tkx::set('::argv0', $ARGV[0] || ""); # work-around for dateentry usage of argv0 and that should get around it without effecting real operation. I'll fix up dateentry.tcl so that in the future it will do it's own var existence check of argv0 for such embedded use cases. Regards, Jeff