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 strongm 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
  • 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 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.
  16. 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...
  17. RajVerma

    stand alone application

    I guess I was explaining too much too vague. to put it in a simple way, can FreeWrap(in Linux) deal with math package? FreeWrap of windows works fine with math package but FreeWrap of Linux gives an error about math package. why? I'm using the same tk script on both the platforms. thanx, Raj.
  18. RajVerma

    stand alone application

    hi Bob, every thing works fine (without opening a shell window, may be b'cos there is already one shell opened from where I ran the script) in Linux as well as windows when I run the script from the shell. My first concern is, after wrapping in Linux, I tried to run the wrapped application...
  19. RajVerma

    stand alone application

    thnx Bob, I tried it. It works fine in windows without any complaints. But in Linux, it seems it doesn't recognize the "math" package. It creates the executable file, but when I run it, it gives the following error... Error sourcing /home/raj/Desktop/Report/DLFG/fg23.tk: can't find package...
  20. 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.

Part and Inventory Search

Back
Top