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!

Recent content by RajVerma

  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 bob, thanx for the suggestion. seems like yours is also a good idea. actually I tried as follows: set randNumber [::math::random $min $max] set lowRandNumber1 [::math::random $min $randNumber] set lowRandNumber2 [::math::random $min $lowRandNumber1] ... set lowRandNumber9 [::math::random...
  4. 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...
  5. 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.
  6. RajVerma

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

    hi, the font, symbols, only has the greek symbols. but I want to have the symbols of greater-than-or-equal, less-than-or-equal, universal quantification, existential quantification, conjunction, disjunction and negation. is there a way to get these symbols in a fairly simple way? cheers, Raj.
  7. 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.
  8. 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.
  9. RajVerma

    how to get process run-time??

    hi, I already checked with this tcl command 'time', but it gives the real time, i.e., the real time taken by the process. but suppose if my system is busy with some other process, say P2(which consumes 50 % of my CPU) then this might affect the actual process, say P1, that I wanted to get the...
  10. 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...
  11. 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...
  12. RajVerma

    Freewrap: 1st Time User Of Freewrap on Windows

    the command that u have given is not correct I suppose. In the command "freewrap newfile plain.tcl", the position of 'newfile' should be the name of the main file of your tcl script, and the position of the 'plain.tcl' should be the name of sub file that u want to include for wrapping. In the...
  13. RajVerma

    Freewrap: 1st Time User Of Freewrap on Windows

    yes, FreeWrap is a "right-out-of-the-box" tool. I was wrong y'day when I said that u need Tcl/Tk to use freewrap. u can use it even with the normal windows console. u can get the freewrap at... http://freewrap.sourceforge.net/ u don't have to compile it... u can find the following explanation...
  14. 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...
  15. RajVerma

    Freewrap: 1st Time User Of Freewrap on Windows

    hi, first you have to install Tcl/Tk in your windows to make the freewrap work. you can download the Tcl/Tk for windows here... http://www.activestate.com/Products/ActiveTcl/ first install this and then proceed according to the freewrap instructions. hth, Raj.

Part and Inventory Search

Back
Top