hi all,
I have a Tk interface that has 35 frames (for 32 different parameters) one below the other. I can see all the entire GUI on a 19 inch monitor but it doesn't show the whole GUI on a 14 inch monitor and it is not possible to drag the GUI up and down as the moving control is only on the...
hi,
I want to use the time command of linux konsole from my tk script. my aim is to get the process time of a particular process that I run from my tk script. the problem of using the time command of tcl/tk compiler is that it will give only the elapsed real time but not the actual process...
hi,
I use the built-in random number generator with the command,
[::math::random 1 101] which gives a number between, and including, 1 and 100. Now, I want to get the random number in this range in such a way that the probability of getting 1 is more than the probability of getting a 100.
The...
hi,
I want to restrict the user from entering any number more than 100 in my entry widget. how to do that?? I cud able to restrict to only numbers with
-validate key -vcmd {string is int %P},
but I also want to restrict the length of the input in the entry. any help!
thanx,
Raj.
hi,
in the label of my widget I want to use some math symbols like quantifications(Universal or Existential), Sigma etc. what is the best way to do that?
thanx in adv,
Raj.
hi,
I open a file in r+ mode and read the data line by line. when I encounter an empty line I want to delete it.
I found the info on deleting text in the widgets, but I cudn't manage to do it inside a file!
any help...
thnx,
Raj.
hi,
is there a specific time function in Tcl that gives the exact process run-time(not the real-time) of running a particular routine? In Lisp we have something like (get-internal-run-time), where we can call this time function before and after the routine so that we can calculate the time...
hi,
I want to know the time taken by the Tcl/Tk compiler to execute my procedure.
Is there a built-in function in Tcl that give the process time, or do we have to call something like a timer, where it has to be called before and after the procedure so that we can measure the difference...
hi,
I have a tk script that uses a math package. I run it using the command "wish myscript.tk" in my linux system at home. It works fine. I run the same script using the same command in the linux system at my univ lab. It also works fine there.
today I tried to work at home by connecting to...
hi,
I used FreeWrap in Linux(SuSE 9.0) to create an executable application for my single Tk script. When I run this application I'm getting the following error:
Error sourcing /home/raj/Desktop/Report/DLFG/fg23.tk: can't find package math
so my question is, does FreeWrap not deal with math...
hi all,
I have a simple tk program with a GUI. instead of running the file from a Tcl/Tk prompt I want to make it as a executable file that can run even without having Tcl/Tk compiler. can anyone give me some reference where can I look for the info.
thnx,
Raj.
hi all,
In the entry field of my GUI, I want to restrict the user to enter only numbers. So I want to make only the number keys from 0 to 9 to work and the rest to not to work in that particular entry widget. is it possible? or is there any other way to achieve this?
thanx,
Raj.
hi all,
I used the Random Number Generator, page 85, from the book "Practical Programming in Tcl and Tk(3rd edition)" by Brent B. Welch. As it is mentioned there, it was adapted from a different source. anyway, the point is this RNG is having a flaw. It took me one whole day to recognize this...
hi all,
suppose I have a number like '20.45672987988776880' and I want to truncate all the characters after the second position after the decimal, that means I want to get '20.45' out of it, then what is the syntax? I want the numbers only with atmost 2 characters after the decimal. I'm getting...
hi,
I have the following code for a tk interface in windows that communicates through COM1.
set chan [open com1 r+]
fconfigure $chan -mode 19200,n,8,2 -translation binary -buffering none -blocking 0
this code is just a part of my program. here I'm able to run it successfully on a windows...
hi,
I have a tk program, in a single file, which is an interface between an electronic machine and the computer through COM1. I normally run this file from 'tkcon' Tk-console in windows using 'ActiveState ActiveTcl 8.4.4.0'.
Now I want to make it as an executable file so that the user doesn't...
hi all,
I wana convert an 8 digit hexa number to decimal. I found a very useful info at http://wiki.tcl.tk/1067 but unfortunately it supports only untill a certain limit of hexa numbers, for example it doesn't give correct values for higher than 7FFFFFFF but it works fine till 7FFFFFFF. but I...
hi all,
I have an entry widget and I want only the numbers to be entered in this entry but not any other character from the keyboard. so cud some one point out some useful links of some procedures.
thanx in advance.
Raj.
hi all,
I have a machine that is connected to COM1 of my pc and the interface config is RS232C, 19200 Baud, no parity, 2 stop bits and with no flow control. so the purpose of this machine is that when ever I press a particular key in my keyboard the machine recieves this information and...
hi all,
I'm trying to run a .tk file from the tkcon 2.4 version in windows. I'm getting two windows, one is that I desire according to the code and the other is a default one. Is there any way to get rid of this default widget when I run "wish filename.tk" from the tkcon console...
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.