ttk::label not defaulting to 'w' anchor option ?
Hi !
With the following code :
% package require Tk
8.5.0
% ttk::label .l -text mylab
..l
% pack .l -expand yes -fill both
Now you can resize the '.' window and see that the text is anchored to
west.
However, the [.l configure] tells me that -anchor equals {}. Even with
CVS HEAD.
That looks like a bug to me. Should I file a ticket on SF ?
Thanks !
|
9/8/2010 10:59:55 PM
|
0
|
Thomas MENEZ <menez.tho...@gmail.com>
|
|
|
"file link" and its support for Microsoft NTFS junctions and/or symbolic links ...
Hello,
while "file lstat" works on NTFS junctions and NTFS symbolic links -
both with the type array element set to "link" - the "file link" works
only with NTFS junctions:
% file lstat $junctionPath stat
% parray stat
stat(atime) = 1283935439
stat(ctime) = 1283935439
stat(dev) = 2
stat(gid) = 0
stat(ino) = 24025
stat(mode) = 41380
stat(mtime) = 1283935439
stat(nlink) = 1
stat(size) = 0
stat(type) = link
stat(uid) = 0
% file lstat $symbolicLinkPath stat2
% parray stat
stat(atime) = 1271333372
stat(ctime) = 1271333372
stat(dev) = 2
stat(gid) = 0
stat(in
|
9/8/2010 11:30:14 AM
|
0
|
"MartinLemb...@Siemens-PLM" <martin.lemburg.siemens-...@gmx.net>
|
Equivalent of Blt_DictionaryCompare in C
Although this is a C language question but it has it's origins in TCL.
We use the function Blt_DictionaryCompare in one part of our
application which is in TCL but we want same sorting behavior for
another part of the application which is not in TCL rather written in
C.
I cant seem to locate an equivalent function in C for this. Briefly
the behavior of this function for ascending order sort for an example
set is: "abc4, abc 100" rather than "abc100, abc4" for normal sort
routine like strcasecmp.
I dont want to write the routine myself in C if it already exists and
also want to avoi
|
9/8/2010 11:31:16 AM
|
3
|
Rohit M <rohit.marka...@gmail.com>
|
How is "place" calculating the order of windows that overlap?
Hi all,
I have an application and a screen shot:
http://www.ellogon.org/~petasis/tcl/Images/Place.png
The gray window with the progress bars, is a window that I put in the
middle of the canvas widget through place. The same happens for the
small yellow window on the left bottom corner (the timer).
But my problem is the button with the label "MR: Get Events". This is a
canvas item actually (a window item). Despite the fact that the window
containg the progress bars is placed after the canvas item was created,
the canvas window is on top.
Is there a way I can lower the c
|
9/8/2010 6:27:55 AM
|
4
|
Georgios Petasis <peta...@iit.demokritos.gr>
|
Starkit & Ffidl strange behavior
Hi everybody,
Today I've encountered some strange behavior trying to use starkit
package. Here's my environment:
ActiveTcl 8.5.5.0 on Windows XP 32bit SP3
and sample code snippet:
# -- Begin
# StarKit 1.3.2
package require starkit
#puts --\ Before:$auto_path
set skstartup [ starkit::startup ]
#puts --\ After\ :$auto_path
#set auto_path [ lrange $auto_path 1 end-1 ]
lappend auto_path lib
package require Ffidlrt
puts {That's all, folks!}
# -- End
The code snippet is located in "My Documents\My Project", and all
packages are in ./lib subdirectory.
The code snippet fails wit
|
9/7/2010 1:23:02 PM
|
1
|
eugene <eugene.mind...@gmail.com>
|
printing text in color in tkcon
I am using tkcon in tcl 8.5 and I would like to print certain words in
different colors. I have found one thread about this from 2007: "How
to dynamically change stdout color?" My request is exactly the same
but that thread never came to a conclusion.
I understand about text widgets and tags, and I can create a new tag
fine using "tkcon console tag configure myname -foreground #ff00ff".
The question, which is not answered in the older thread, is how do I
associate my tag with a string displayed in the console? Using "puts"
will associate it with the stdout tag only. Is there some
|
9/7/2010 11:00:22 PM
|
2
|
davidlallen <d...@jendaveallen.com>
|
ttk::entry Win32/Linux portability issue
Hello
I have the following problem with a ttk::entry which does not seem as
much portable as I would want.
The ttk::entry has an option named 'cursor' (which defaults to
'ibeam') under Win32(XP). This option does not exist under Linux (not
listed with a [.myWidget configure] call). Both systems use 8.5.x Tk
based distros.
Is there any valid good reason for such a difference ?
If confirmed, there is a portability issue, as [.myTtkEntry configure -
cursor ibeam] will yield an error under Linux platforms.
Thanks !
|
9/7/2010 11:43:59 AM
|
2
|
Thomas MENEZ <menez.tho...@gmail.com>
|
ttk::combobox looses its set sub command
Hello all.
I have a simple mega widget (see below) that uses a combobox. There
are two things that I don't understand and can not resolve:
- Why do I get the error: unknown or ambiguous subcommand
"set": ... ?
My output show that the unknown handler is called and that the
subcommand set is invoked for the ttk::combobox which has this
subcommand.
- Why do I not see the renamed command .fs1:cmd with: lsort [info
commands] ?
The megawidget renames the given widget command $w to $w:cmd. But
the renamed command does not show up in the list of commands.
This is my output:
t
|
9/7/2010 9:18:41 AM
|
0
|
hae <r_haer...@gmx.de>
|
Determine terminal width, strange behavior of tput
Hi guys,
I'm trying to determine the terminal window from within a TCL script.
I was playing around with Linux's 'tput cols' and get strange
differences between using and not using exec:
% tput cols
153 (correct)
% exec tput cols
80 (incorrect)
So, ok, I got the right answer, but that works only for interactive
shell; in a script I get invalid command tput.
So:
1. How can I get exec tput to behave as tput, or;
2. How do I determine the terminal width from within a TCL script?
|
9/7/2010 7:09:04 AM
|
2
|
de Paljas <depal...@gmail.com>
|
Enquiring the name of an open file from a channel
Is there a way of enquiring the name of a file from the channel it's
connected to?
For example
set ofh [open foo w]
# What is the real code corresponding to the code below?
puts "The name of the open file is [chan configure $ofh -name]"
Thanks,
Simon
|
9/6/2010 4:22:04 PM
|
6
|
Simon <si...@whiteowl.co.uk>
|
tcl7.6 and tk4.2 on windows 7
Hello.
Thanks for reading this post.
Has anybody compiled tcl7.6 and tk4.2 on windows 7?
I have an old c application that I ported to windows 7 which uses this
old version of tcltk in a few executables. I do have the dlls:
tcl76.dll and tk42.dll, but the applications that use them don't run.
I switched to tcl and tk 8.5 and again those three executables
compiled cleanly but didn't run.
I am missing tcl76.lib and tk42.lib and I think I need the libs
(tables with ext refs) to be able to jump to the dlls.
Thanks, Kay
|
9/6/2010 3:26:53 PM
|
1
|
kay <kzemou...@cox.net>
|
Using tclBlend with Tcl 8.5
Does anyone know if it's possible to use tclBlend (actually tcljava)
with Tcl 8.5 ?
Trying to rebuild tclBlend 1.4.1 with Tcl 8.5.8 on Fedora 12 gives me
good
configuration and compilation. However, execution fails with the
following error :
#
# An unexpected error has been detected by HotSpot Virtual Machine:
#
# SIGSEGV (0xb) at pc=0x007b2bd5, pid=3988, tid=3077981888
#
# Java VM: Java HotSpot(TM) Client VM (1.5.0_16-b02 mixed mode)
# Problematic frame:
# C [libtcl8.5.so+0x9ebd5] Tcl_FindCommand+0x35
#
# An error report file with more information is saved as
hs_err_pid3988
|
9/6/2010 12:04:16 PM
|
1
|
usam <daniele.man...@libero.it>
|
How to scan a large amount of files for not containing words in a quick manner?
Hi,
I have nearly 1500 tokens/words and 2000 files "using" such words.
Now I want to find out, which words are not used inside this files.
Currently I open each file and loop over each word using it inside a
regexp pattern "[[:<:]]$word[[:>:]]" to test the regexp result to be
0.
Has someone already done this and found a quicker way to test the non-
existance of ca. 1500 words inside a file?
Best regards,
Martin
|
9/6/2010 12:16:03 PM
|
5
|
"MartinLemb...@Siemens-PLM" <martin.lemburg.siemens-...@gmx.net>
|
is it possible to define a default options set for fconfigure?
Hi,
since working/developing with tcl, I often had the need to open a lot
of files with the same fconfigure settings.
Is there a until now unrecognized way to pre(f)configure files to get
opened to have all files opened e.g. with a specified buffer size, or
must I call fconfigure really for each file?
Best regards,
Martin
|
9/6/2010 10:16:34 AM
|
1
|
"MartinLemb...@Siemens-PLM" <martin.lemburg.siemens-...@gmx.net>
|
TkTreeCtrl and <B1-Motion>
Hi,
I have a problem with binding <B1-Motion> to TkTreeCtrl widget. It
simply doesn't work, at all.
Is there anything I should know? I know that this widget does a lot of
stuff with binding and maybe I should handle it somehow different. Any
tips? How does look the simplest substitution for:
bind $treeCtrlWidget <B1-Motion> "puts motion"
?
Thanks!
Googie
|
9/5/2010 9:39:07 PM
|
3
|
Googie <pawelsal...@gmail.com>
|
Process id
I noticed that when I use the open "| ..." construct, I do not get the
process id but a file handler. Is it possible to get the process id too?
DrS
|
9/5/2010 6:39:41 PM
|
2
|
drscr...@gmail.com
|
Energy Saving Tips
1. Reduce heater's room temperature
For each extra degree (Celsius) of temperature, your heater will
consume 7 to 11%
more energy. Adjust it to 18degrees which is also better for your
health.
2. Install a programmable thermostat
You will be able to control the heater's temperature during specific
hours every day.
3. Insulate your house
Loss of heat is loss of energy.
4. Fix air leaks
5. Close the chimney of the fireplace when you don't use it
It is designed to drive smoke (hot air) out of the house!
6. Get an energy audit to advice you about the necessary fixes and
insulation
7.
|
9/5/2010 2:16:37 PM
|
0
|
"......" <sustainable.future...@gmail.com>
|
ttk::treeview setting default colors (no tags)
What are the proper style options to specify to "ttk::style configure
Custom.Treeview" in order to change the default colors (foreground/
background) of items (the cells) in the treeview?
Thanks in advance,
Richard
|
9/4/2010 9:57:42 PM
|
2
|
Rich <google-em...@dp100.com>
|
Feature or...?
Hi all,
Is this expected? Does glob expects always unix filenames?
(petasis) 49 % set p {C:\Users\George\.ellogon\bin}
C:\Users\George\.ellogon\bin
(petasis) 50 % set p [file native {C:\Users\George\.ellogon\bin}]
C:\Users\George\.ellogon\bin
(petasis) 51 % set dlls [glob -directory $p *.dll]
{C:\Users\George\.ellogon\bin/comerr32.dll}
{C:\Users\George\.ellogon\bin/gssapi32.dll}
{C:\Users\George\.ellogon\bin/k5sprt32.dll}
{C:\Users\George\.ellogon\bin/krb5_32.dll}
{C:\Users\George\.ellogon\bin/libeay32.dll}
{C:\Users\George\.ellogon\bin/libiconv-2.dll}
{C:\Users\George\.
|
9/4/2010 4:51:40 PM
|
1
|
Georgios Petasis <peta...@iit.demokritos.gr>
|
Tcl parser ?
Hi !
Is there any available tcl parser available anywhere ? I would like to
make a custom tcl code formatter. For instance, lex could be used I
guess...
Thanks !
|
9/4/2010 12:50:50 PM
|
5
|
Thomas MENEZ <menez.tho...@gmail.com>
|
json
% package require json
% puts [ json::json2dict {"a":"b", "c":"d"} ]
a
Anyone else has this problem?
|
9/4/2010 6:21:02 AM
|
2
|
Tcl Bliss <tcl.bl...@gmail.com>
|
Expect on Windows, SSH/Telnet processes not closing properly
So, a few days ago I had posted this thread (http://groups.google.com/
group/comp.lang.tcl/browse_thread/thread/d4486bcff86ba5c5?hl=en) about
some issues with Expect on the Windows platform(s) not properly
closing the SSH/Telnet processes (i.e. exp_close & exp_wait don't seem
to work like they do on *nix machines, thus eating up more memory,
etc.)
I see that on some other mailing-lists, a few people have ran into
this as well. I don't quite have a solution, but in some sense, there
is a work-around.
Using plink.exe (PuTTY's command-line tool), you can send a single
command on the
|
9/3/2010 6:10:32 PM
|
0
|
scottdware <scottdw...@gmail.com>
|
ttk::checkbutton vs tk::checkbutton
The tk::checkbutton widget has the "-wraplength" option to cause the
widget to automatically wordwrap its textual label.
Is there any method with the new ttk::checkbutton to achieve the same
end result, automatic wordwrap based upon a length value?
|
9/3/2010 1:15:19 PM
|
1
|
Rich <google-em...@dp100.com>
|
clock question
I see that the clock command can give you the week numbers but how do
find the 2nd Monday of a month? Is there a shortcut?
DrS
|
9/2/2010 3:43:14 PM
|
2
|
drscr...@gmail.com
|
tclkit-8.6b1.1 vs tclkit 8.6b1.2
These two kits (picked up from http://www.patthoyts.tk/tclkit/linux-ix86/)
behave very differently when it comes to using megawidgets. With a
source file containing:
-------------------------------------------------------------------------------
#to get the version number:
puts "Tclversion= [package require Tcl]"
puts "Tkversion= [package require Tk]"
set DataFileToOpen [tk_getOpenFile -title "File-select test"]
--------------------------------------------------------------------------------
../tclkit-8.6b1.1 sourcefile.tcl
correctly displays the file-chooser widget
../tc
|
9/2/2010 2:26:45 PM
|
0
|
tsh <terry.horsn...@googlemail.com>
|
Issue with interact command
Hi Folks
When I use interact within an interactive expect window, it works fine. However when I use it in a one-line command it doesn't seem to work. Is there any issue with my usage?
Regards
Prem
Case1: Interact fails
=====================
[hprem@gpk-lds-013:~]$ echo 'spawn sh; interact' | expect
spawn sh
[hprem@gpk-lds-013:~]$
Case2: Interact works
=====================
[hprem@gpk-lds-013:~]$ expect
expect1.1> spawn sh
spawn sh
12126
expect1.2> interact
sh-3.00$
sh-3.00$
sh-3.00$ exit
exit
expect1.3>
expect1.3> exit
[hprem@gpk-lds-013:~]$
--
There's no I in TEA
|
9/2/2010 10:22:06 AM
|
0
|
Prem Anand <hp...@cisco.com>
|
Determine if parent process ends from child
I have two tcl scripts dad.tcl, kid.tcl
Running dad.tcl as the parent process and from it i launch kid.tcl as
a child process using the following line "not sure if it's the best
way to do it"
[file:dad.tcl]
......
exec tclsh kid.tcl &
....
And dad.tcl goes on doing a activity, while it's child process is
checking if it's parent is done or not, if it's done it should execute
a certain command let say xterm, this is done by
[file:kid.tcl]
....
while {1} {
#puts amiOn=[eval ps -l [lindex $argv 0]]
if {[string first [lindex $argv 0] [exec ps -ef]] == -1} {
eval xterm
|
9/2/2010 2:07:12 AM
|
3
|
"ramy.m.alassal" <ramy.m.alas...@gmail.com>
|
[info commands Button] does not work until a Button is actually created !?
Hi !
I have the following problem with BWidget package :
package require BWidet
[info commands Button] ---> {}
Button .b
[info commands Button] ---> Button
Is that a bug or am I missing something ?
I don't want to create a Button with catch { } just to discover
whether it's available or not. Any suggestion ?
Thanks !
|
9/1/2010 3:39:51 PM
|
0
|
Thomas MENEZ <menez.tho...@gmail.com>
|
'info commands Button' does not work until a Button is actually created !?
Hi !
I have the following problem with BWidget package :
package require BWidget
[info commands Button] ---> {}
Button .b
[info commands Button] ---> Button
Is that a bug or am I missing something ?
I don't want to create a Button with catch { } just to discover
whether it's available or not. Any suggestion ?
Thanks !
|
9/1/2010 3:41:22 PM
|
0
|
Thomas MENEZ <menez.tho...@gmail.com>
|
Using fileveent with a Tk GUI : "out of stack space (infinite loop?)"
Hello
Why does the following code yield this "out of stack" error ?
package require Tk
proc myCb { } {
update
}
button .b -text pushMeHard -command { fileevent $fileH readable
{ myCb } }
pack .b
set fileH [open existingFile.txt r]
I actually have a problem using fileevent on an opened file using a
TkGUI. As long as the file hasn't been totally read, the GUI
freezes...Is there any clean way to achieve this without freezing the
GUI ? Calling update in the myCb callback does not seem to solve my
issue ... Any suggestion ? Threads ?
|
9/1/2010 11:00:37 AM
|
5
|
Thomas MENEZ <menez.tho...@gmail.com>
|
package tclsane
Is this package still available anywhere? The last reference on the
wiki was in 2007 where it was suggested that it was moved to the sane
project website but nope, its not there.
If the project is now dead, even an old archive copy of the source
would be useful.
WJG
|
9/1/2010 8:27:41 AM
|
0
|
WJG <wjgiddi...@blueyonder.co.uk>
|
reflected channels
I am looking at possibility of using of reflected channel API in my
web application code as means of reducing/eliminating bottlenecks
created by long running/slow code.
Is this possible?
Can I, for example, wrap a simple string into the channel API code and
do "fcopy $string_chan $out_sock"?
Or wrap a database access call into reflected channel API and use file
events to read from it in non-blocking mode?
Or, am I misunderstanding the idea behind reflected channels?
Thanks
|
8/31/2010 9:32:52 PM
|
2
|
Tcl Bliss <tcl.bl...@gmail.com>
|
Stopping SSH process once finished
Hello, all!
* This is on a Windows 7 machine *
So, I have a script that I wrote that use to SSH into switches, and
grab some data, then I parse it and make it look more readable, etc.,
etc. I use Expect, which calls "plink.exe" (PuTTY's command line tool)
to access the devices.
The thing is, everything works great, but after I exit the device, and
move on to the next one, the plink.exe process still exists from the
time before, and if I go through 200+ devices, well, I have 200+
processes that I don't need.
I've been trying to find a way to kill the PID, such as return the PI
|
8/31/2010 7:00:19 PM
|
1
|
scottdware <scottdw...@gmail.com>
|
create bitmap without Tk
Hello Group
Has somebody experiance with create image (bmp-file) in the background
(without tk)?
I must create a bmp-file 512x32 with one or two row text in it.
Is there a library or a package for this?
Marc
|
8/31/2010 9:30:34 AM
|
5
|
mz <...@panorgan.ch>
|
ttk::combobox disabled state under Windows
Under Windows, setting a ttk::combobox to a disabled state does not gray
out the displayed text. It does gray out the arrow and change the
border and/or background of the widget (depending on the Win version).
Under WinXP, the background is changed enough to make the state of the
widget fairly obvious, though again, the text color is not changed.
However, under Win7, the border and background differences between the
enabled and disabled states are quite subtle, so really the grayed arrow
is the only real indication of the widget's state.
Shouldn't the text color be changed
|
8/30/2010 3:05:44 PM
|
1
|
Jeff Godfrey <jeff_godf...@pobox.com>
|
Dumping a Tcl_obj object for later reuse ?
Hi !
Is there any way to "dump" a Tcl_obj for later reuse ? I mean, would
it be possible to programmatically store a Tcl_obj into a file and
then be able to reuse it later ?
I have checked the Tcl_obj struct definition, there are a few
pointers... So simply memcpy'ing it into a file wouldn't be enough,
but I don't think writing a function that dumps a Tcl_obj and
associated pointed memory areas would be too difficult...
Would you have any suggestion to accomplish such a trick ?
Thanks !
Thomas
|
8/30/2010 1:14:37 PM
|
10
|
Thomas MENEZ <menez.tho...@gmail.com>
|
Invoking python functions from TCL XMLRPC client
Hi
I've a python function (exposed by a third party application) that
accepts a list parameter. I can invoke this function over XMLRPC.
I am using XMLRPC with TCL to invoke this function. However,
irrespective of whatever values I use from TCL, it's treated as a
string by foo resulting in a crash.
def foo(self, values):
'values -> this is a list
What is the correct way to pass a parameter to TCL such that when foo
is invoked, it is treated as a list.
Any inputs will be of great help.
Thanks
Sharad
|
8/30/2010 6:51:33 AM
|
1
|
Sharad <sharad1...@gmail.com>
|
BWidget question
I have used the BWidget scrollable widget to make a scrollable widget
that is composed of a series of vertically stacked canvases.
I was wondering if there is way to "auto scroll" such that if a user
clicked on a canvas that was not completely visible (part of it being
scrolled off) the scrollable widget would automatically scroll to make
the
whole canvas visible?
Thanks in advance,
Stuart
|
8/29/2010 2:31:21 PM
|
2
|
Stuart <bigdak...@aol.com>
|
Parentheses a bit more useful
I'm wondering: wouldn't be convenient, to set the parentheses as place for
*any* index? I mean: not just for arrays, like it works today - but for lists
and dictionairies as well.
Could it be technically possible? There are some related checks in the
code anyway, which are examining "are the parentheses used really for an
array" - for example:
#v+
% set a 1
1
% puts $a(x)
can't read "a(x)": variable isn't array
#v-
So perhaps there could be additional checks: whether a is an array, _OR_ a
is a list, _OR_ a is a dictionary? Such way we could retrieve a list element
j
|
8/29/2010 2:45:33 AM
|
11
|
ZB <zbTHIS-...@ispid.THIS-NOcom.pl>
|
Snack - Sound Level
Hi
I have never used Snack so please bear with me.
Is there a way to calculate the "average" sound level of a WAV file,
possibly ignoring the silent moments?
Thanks
Avi
|
8/29/2010 2:54:54 AM
|
0
|
Avivi <aviv...@gmail.com>
|
8.5.x on Windows 7 64 bit
Dear all,
I have compiled tcl/tk 8.5.x with VS 2005 for XP64 platform. Does
anyone know if it will also work for Windows 7 64 bit ?
Your help is greatly appreciated.
Regards
S-Y. Chen
|
8/28/2010 9:49:35 AM
|
1
|
"S-Y. Chen" <shenyeh_c...@hotmail.com>
|
Raising windows on Linux
I have added a simple file locking mechanism to a set of my programs
which allows the reactivation of the program which initially locked
the file (PID in the lock file with SIGUSR1), when the program is
reactivated I would like the program to deiconify its window and raise
the window to the front.
I use
wm deiconify $Gui(Toplevel)
raise $Gui(Toplevel)
focus -force $Gui(Toplevel)
but this does not always work and sometimes the icon on the task bar
simply flashes blue.
I am using RHEL 5.3 with the gnome window manager.
Does anyone have any suggestions how to upfront
|
8/27/2010 10:44:08 AM
|
1
|
MSEdit <mse...@gmail.com>
|
Troubles using img::raw
Hello,
I'm trying to use the img::raw library in my TCL/TK application.
What I want to do is display images that are stocked inside TCL
variables
containing binary data.
Here is a minimal exemple that should display a noisy image but that
instead only display a black one :
package require Img
package require img::raw
set f [open "a_big_file" r]
fconfigure $f -translation binary
set f_content [read $f]
close $f
set photo2 [image create photo -format "raw -useheader 0 -nomap 1
-verbose 1 -width 320 -height 240 -nchan 3 -pixeltype byte" -data
$f_content]
labe
|
8/27/2010 9:19:27 AM
|
0
|
Alex <alxd...@gmail.com>
|
exec with start and file names with spaces
I am trying to come up with a robust way to run windows batch files in
a CMD.EXE ("DOS") window.
My usual solution is to use:
exec $env(COMSPEC) /c [list start ${path}/file.bat arg1 arg2]
This works fine until someone decides to install my package in C:/
Program Files/pkg, but that can still be worked around by putting
[file attrib ${path}/file.bat -shortname] in place of ${path}/file.bat
above. However, this will not work if the path is, say, C:/My Prog/
pkg, since there are fewer than 8 characters.
Windows seems to want to have quotes around the file name (one also
needs to
|
8/26/2010 11:27:38 PM
|
6
|
bht <brian.t...@anl.gov>
|
new TCL book alert
I was recently surprised and shocked to find a new TCL book:
Tcl 8.5 Network Programming --
"https://www.packtpub.com/tcl-8-5-network-programming/book?tag=vf/tcl-
abr4/0710&utm_source=vf_tcl_abr4_0710&utm_medium=content&utm_campaign=veronica"
Surprised because new TCL books are rare, only two books published
recently, as far as I know: "Tcl 8.5 Network Programming" and "Tcl and
the Tk Toolkit (2nd Edition)"
Shocked because the book is 588 pages long (How can you stretch "TCL
network programming" topic for 588 pages?). Turns out it is a fairly
complete book on TCL, but the main topi
|
8/26/2010 9:50:36 PM
|
1
|
Tcl Bliss <tcl.bl...@gmail.com>
|
Text widget - highlight line across entire widget width
I need to highlight a specified line of text in a text widget. I now I
can do something like this:
$text tag add highlight $line.0 $line.end
That'll apply the attributes of the "highlight" tag to the specified
line, from the first character to the last. However, I need my
highlight marker to go all the way across the width of the widget,
regardless of the character width of the current line.
I assume I don't have to pad each line with spaces?
Thanks,
Jeff
|
8/26/2010 8:08:06 PM
|
4
|
Jeff Godfrey <jeff_godf...@pobox.com>
|
=?windows-1256?B?yNHkx+PMIMfh0cfGzyDd7SDKzePt4SDH4ePh3Q==?= =?windows-1256?B?x8ogSW50ZXJuZXQgRG93bmxvYWQgTWFuYWdlcg==?=
yNHkx+PMIMfh0cfGzyDd7SDKzePt4SDH4ePh3cfKIEludGVybmV0IERvd25sb2FkIE1hbmFnZXIK
Cmh0dHA6Ly93d3cuYWdkM2FzN2FiLmNvbS92Yi9zaG93dGhyZWFkLnBocD90PTI5ODg0
|
8/26/2010 7:37:51 PM
|
0
|
alagmy <englishtranslator2...@yahoo.com>
|
uppercase to lowercase
Is there a quick way (perhaps a regexp) to switch uppercase to lowercase
and vice versa?
DrS
|
8/26/2010 4:52:50 PM
|
17
|
drscr...@gmail.com
|
variable substitution in strings
Hi,
I just can not find the right syntax for variable substitution in
strings - how do I make tcl print "Hello Peter" ?
% set me Peter
Peter
% set greet {Hello $me}
Hello $me
% puts $greet
Hello $me
% puts "$greet"
Hello $me
% puts [eval "set greet"]
Hello $me
% puts [eval {set greet}]
Hello $me
|
8/26/2010 11:00:32 AM
|
4
|
"M. Strobel" <sorry_no_mail_h...@nowhere.dee>
|
Reading TCL variables from calling script
Hi,
I have a TCL script that sources different other TCL modules.
Is there a way to let variables set in the main module be available
inside called modules (reading variables from upper level).
Thanks,
Ahmad
|
8/25/2010 11:41:08 PM
|
2
|
Ahmad <ahmad.abdulgh...@gmail.com>
|