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 SkipVought 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: anirban2k2001
  • Order by date
  1. anirban2k2001

    String padding in Tcl

    Thanks once again, Bong
  2. anirban2k2001

    String padding in Tcl

    Hello everyone, I need to write some fixed length data to a text file. I have a variable named val whose value needs to be of a fixed length, say 7 characters. How do I pad the val variable with leading zero's so that the length of the value stored in the variable is 7. Example: set...
  3. anirban2k2001

    Scrolled listbox problem

    Hi all, I have a listbox in a frame. The listbox is populated with values from the backend. Since there will be many items in the list, I want to add a vertical scrollbar to the list box. I am giving below the code that I have used for the purpose, but the scrollbar does not show up as a result...
  4. anirban2k2001

    Entry widget problem

    Thanks once again.
  5. anirban2k2001

    Setting the max length of a text widget

    Thanks a ton!
  6. anirban2k2001

    Hidden text widget

    Thanks. Sorry, I made a mess of it. Regards, Anirban Sarkar
  7. anirban2k2001

    System date and time in Tcl

    Thanks a ton!
  8. anirban2k2001

    How to scroll a frame?

    Thanks. However, I am totally confused. My application will ultimately run on a simputer and unfortunately, the simputer does not support Bwidget. It gives the message "Can't find package Bwidget". What do I do? Regards, Anirban Sarkar
  9. anirban2k2001

    Entry widget problem

    Hi all! I have a frame .f3 and two entry widgets which accepts input from the user. The relevant code is: ############################################################ frame .f3 -width 250 -height 270 pack .f3 pack propagate .f3 0 label .f3.l6 -text "Panel No" -font $fnt9 place .f3.l6 -x 0 -y...
  10. anirban2k2001

    How to scroll a frame?

    Hi all, I have a frame in TCL where there are many label, text and entry widgets. To accomodate all the controls in the frame, I want to make the frame scrolling (both vertical and horizontal). How do I do it? The frame initialisation code is given below: frame .f2 -width 250 -height 270 pack...
  11. anirban2k2001

    System date and time in Tcl

    Thanks, but how do I format the date to dd-mm-yyyy format and time to hh:mm:ss format. Regards, Anirban Sarkar
  12. anirban2k2001

    System date and time in Tcl

    How do I pick the system date and time in TCL? Thanks. Anirban Sarkar
  13. anirban2k2001

    Setting the max length of a text widget

    How can I set the maximum length of a text entry widget in TCL? I am giving the code below where I want to implement this. I want to set the maximum length of the text widget .f2.t1 to 50 characters CODE: label .f2.l1 -text "Name" -font $fnt9 place .f2.l1 -x 0 -y 25 text .f2.t1 -bd 1...
  14. anirban2k2001

    Hidden text widget

    Many thanks for your response. I tried using your code but it gives me the following error: Error: ".f2.t1" isn't a top-level window Regarding your query: I need to specify some hidden text widgets because I want to have access to those values when I click on the Submit button and a procedure...
  15. anirban2k2001

    Hidden text widget

    Hi all, I need to store some values in a hidden text widget which is in a frame in tcl so that I can use those values to perform some mathematical operations when I click on the submit button. My problem is that I cannot make a text widget hidden. I am giving below the text widget code which I...
  16. anirban2k2001

    Read only text widget

    Thanks a ton! -Anirban
  17. anirban2k2001

    Problem fetching text widget value on button click

    Thanks a ton! -Anirban
  18. anirban2k2001

    Problem fetching text widget value on button click

    Hi all, I have a tcl text widget with some values in it that has been fetched from a sqlite backend. I also have a button labelled Submit. When I click the Submit button, I want to call a procedure which will fetch the value that is stored in the text widget and store it in a variable. What do...
  19. anirban2k2001

    Read only text widget

    Hi all, I have a text widget which successfully fetches data from a backend sqlite database and displays it in the text widget. My requirement is that I want to make the text widget readonly so that no one can edit the fetched data. I use '-state disabled' but that hides the data that is...
  20. anirban2k2001

    Problem submitting TCL page

    Hi all, I have a TCL page with a list box and two command buttons - Submit and Exit. When I click the Exit button the page exits. However, I am facing problems with the Submit button. I want the current page to unload and a new TCL page to get loaded when I click the submit button. The first...

Part and Inventory Search

Back
Top