Thanx a lot Avia...
I improved the execution speed of my application with Tcl threads, but I understand that I lost my time because of the fileevent mechanism. Now I use 'after 100' to know when I've got to read stdout and I've got any speed problem no more!
Well, you can also use Tcl_Eval, if you want to modify your C code with Tcl C procedure.
Tcl_Eval(interp, "text_widget_name insert end {what you wanna see in your widget}").
Hi,
I redirect stdout to a file. Then I use Tcl events to know when the file is readable and when it changes. Finally you just have to write a callback which will fill the text widget with the content of the file.
I don't know if it's the best way to do that, but it works.
PS: Don't forget to...
I want to know how does the anchor works when we insert a bitmap file in a canvas.
I try to fill the canvas with a bitmap of the same size but I don't understand how does the anchor works in the canvas and the bitmap isn't well placed!
- Example:
# Create and place canvas
canvas .cnvs...
Hi,
I want to know if a widget which can display XML files on screen exists. I don't know if TkHTML widget is able to diplay such files...
I'm also looking for some tutorials on tDOM, TclDOM, and TclXML.
Thanks.
Of course I've already copied the sources. But I don't know where I can find the patch. And good documentation for recompiling kernel.
Thanx for your answer.
Hi,
I use a Linux MAndrake 9.0 and I want to know where can I find a patch for my Athlon Xp 1700+. And how I can recompile the kernel. My configuration already work but I want to install this patch to make my PC work better.
Thanx!
There is no (EE) for the video card in the /var/XF86.0.log file, I think that I use the right driver (My video card is recognize). But apm can't be launched and The server found screen but none have an usable configuration, even if I am in the 800*600 mode.
Hi,
I recently install Linux (Debian Woodie 3.0) on my computer but I 've got a porblem with the X server. It crash when I try to run it (I use the startX command) and I get the following message:"Can't find an usable screen!"
So I need some help or links to some documentation to solve...
if [info exists env(HOME)] {
set dir $env(HOME)
} else {
# the environment var isn't set, use a default
puts "Pas de variable home"
set dir "/tmp"
}
I don't understand why this code don't work!
Thanx for your replies.
switch $tcl_platform(os) "SunOS" {
set font {-sun-serif-medium-r-normal-serif-0-0-72-72-m-0-iso8859-1}
} "Linux" {
set font {-size 4}
}
AniGif is a pure Tcl/Tk package for loading and manipulating animated gifs. AniGif is implemented in an anigif namespace. You can create, start, stop, restart (At any index), and destroy animated gifs.
You can download anigif at: http://cardtable.sourceforge.net/tcltk/
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.