Re: Are multiple mainwindows possible?
[email protected] (Gisle Aas)
| Newsgroups | perl.tcltk |
|---|---|
| Message-ID | <[email protected]> |
On Sep 2, 2009, at 17:00 , Michael Carman wrote: > Konovalov, Vadim (Vadim)** CTR ** wrote: >> From: Michael Carman [mailto:[email protected]] >>> Tkx doesn't expose the interpreter directly but you can use it via >>> Tkx::eval(). >> >> I do not see "eval" in "perldoc Tkx" - is it also going to be away? > > Technically, I think it's covered here: > > Tkx::foo( @args ) > Any other function will invoke the foo Tcl function with > the given arguments. > > So Tkx::eval() is really calling Tcl's eval. That said, I think the > Tkx > documentation should mention it directly. I didn't know about it > until I > submitted an enhancement request to Tkx's RT queue to make the > interpreter visible and Gisle rejected it with a recommendation to use > Tkx::eval() instead. I'm not sure what makes 'eval' special enough to list it explicitly in the docs. There are so many of those[1] commands that might be useful from Perl. I use stuff like Tkx::list(), Tkx::open(), Tkx::fileevent(), Tkx::gets(), Tkx::set(), Tkx::after(), Tkx::package_require() a lot in my Tkx programs. They are all very useful and powerful. There might be a place in the Tkx tutorial to talk about these in detail. --Gisle [1] http://www.tcl.tk/man/tcl8.5/TclCmd/contents.htm