Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations wOOdy-Soft on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Search results for query: *

  • Users: RajVerma
  • Content: Threads
  • Order by date
  1. RajVerma

    viewing problem with a long Tk interface on small screens

    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...
  2. RajVerma

    How to use the konsole 'time <process>' command within the tk script

    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...
  3. RajVerma

    can we use distributions with ::math::random??

    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...
  4. RajVerma

    how to restrict the entry widget to n characters??

    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.
  5. RajVerma

    how can we use math symbols in a widget label??

    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.
  6. RajVerma

    how to remove the blank line from a file??

    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.
  7. RajVerma

    how to get process run-time??

    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...
  8. RajVerma

    how to get the process 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...
  9. RajVerma

    strange problem --> ssh Vs math package

    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...
  10. RajVerma

    FreeWrap

    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...
  11. RajVerma

    stand alone application

    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.
  12. RajVerma

    numbers only

    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.
  13. RajVerma

    Random Number Generator

    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...
  14. RajVerma

    how to format the length of a floating point number?

    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...
  15. RajVerma

    COM1 in Linux??

    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...
  16. RajVerma

    HOW to convert a .tk file into a windows executable one?

    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...
  17. RajVerma

    hexa to decimal??

    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...
  18. RajVerma

    regarding keybindings

    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.
  19. RajVerma

    serial ports on windows

    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...
  20. RajVerma

    wish in windows!

    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...

Part and Inventory Search

Back
Top