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 TouchToneTommy 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: stewang
  • Content: Threads
  • Order by date
  1. stewang

    eliminate {}

    Hello all: I 'd like to ask a question that how to eliminate the { } from a string. For example, a string like { how are you } I'd like the result like as following how are you I tried the command like set string " { how are you } " set data [ split $string "{" ] set...
  2. stewang

    save .txt file

    Hello all: In my application, I read a .txt and write to another .txt file. But I 'd like to do some change for my application. The first one is that I want bring out a dialog box for save file instead of the default .txt name. I tried to use the command of "set $thefile [tk_getSaveFile]...
  3. stewang

    save textfile

    Hello all: In my application, I'd like to add a special condition to my file application that if we load and save a special file which is "mylibrary.txt"(just do special thing for this file), I will do something special for it, If I load or save the rest of file, they just do the...
  4. stewang

    change colour of menu item and a dialog box for menu iem

    Hell all: In my application, I'd like my menu items of "open" and "save" from the menu of file to have lightgrey colour, but after a new window pop up which from the menu item of "newwindow" under the menu of "window", then they will change to dark colour...
  5. stewang

    append a string to filename

    Hello all: I'd like to append a string to a filename when I save a file. For example, I want to save a file of test.tk to another directory, and I give a new name for the old file which calls newtest.tk. After I save the file, I want to the new file has a string append it, format like...
  6. stewang

    search file

    Hello all: Could anyone tell me how to pop a dialog box for search a file, please. Thanks rgds stewang
  7. stewang

    global varible

    Hello all: In my application, I'd like to go to my desire directory when I click on different menu item, For example, If I click on the favorite of the menu item, I will go to "/home/stewang/Favourite ", for type of music will go to the path of the...
  8. stewang

    Hello all: I try to load mutiple f

    Hello all: I try to load mutiple file name from a folder to a listbox, and save mutiple file name from list box to a directory, But I failed for that, I trid to use foreach,and a option -mutiple for getOpenFile and getSaveFile, but it does nothing. Could anyone help me please. Thanks rgds...
  9. stewang

    right mouse click

    Hello all: I want to have a right mouse click when I click on a dialog box, but I don't known why my code can not work. Would anyone help me, please. Thanks rgds stewang proc openFile {} { # use the built in file selection dialog set filename [tk_getOpenFile] bind filename...
  10. stewang

    create a folder in dersire path

    Hello all: I got some problem as following, could anyone help me to solve the problem.Thanks. How can I create and delete a directory in my desire path and open a folder in my desire path. And how can I check a directory whether exist or not . I am using linux for my application now. For...
  11. stewang

    dialog

    Hello all: Do anyone known how to pop up a dialog box for the user to select all and one file from a folder At the movement, my coding just can pop up a dialog box for the user to select one file from folder. I am using a linux now, I add the -option with -multiple, but it doesn't do nothing...
  12. stewang

    mouse click

    Hello all: I want to pop up a window when I click on the right mouse in the listbox, would anyone give me some idea how to implement this, please. rgds stewang button .b -text "button" -bg white -command newWindow pack .b proc newWindow {} { toplevel .t global lv set lv...
  13. stewang

    A question back to ulis from ask some advise

    Hello ulis: I am back again, I was busy for other things. Last time, you said that the file name acturally is a path name, and you put a list a path of filename on the listbox. Do you have any idea how to put the file name on the listbox, but we just can see the filename, not the path of the...
  14. stewang

    ask some advise

    Hello all: I'd like to ask you give me some advises. And I use linux machine at the movement. I want to select a song or music from a folder, and put the song or music of the name on a listbox which in another window. My question are following; 1> which option can support me to get the song or...
  15. stewang

    add some buttons under listbox

    Hello all: Would anyone give me idea that how to add some buttons under listbox. Thanks set names {"Jones, Steve" "Jones, Matt" "Smith,Tony" "Jefferies, Margaret" "Hall, Mark" "Cunningham, SallyJo"} frame .listframe listbox...
  16. stewang

    listbox problem

    Hello all: I want to bring up a new window with a list box by click a button. but I do not why my code can not work. Would anyone help me, please. button .b -text "button" -bg white -command newWindow pack .b proc newWindow {} { toplevel .t set lv {'test&quot...
  17. stewang

    select all file and put all of them or one to anther frame

    Hello all: Do anyone known how to pop up a dialog box for the user to select all and one file and put all the name of the items to listbox or frame or label. At the movement, my coding just can pop up a dialog box for the user to select one file from folder. menu .mbar . configure -menu...
  18. stewang

    frame height and width

    Hello all: I try to set up a frame with height and width both 500, I failed for that. when I run my code, I can not see the frame with height and width are both 500,would anyone help me,please. frame .menuframe -bg white -height 500 -width 500 menubutton .menuframe.org -text "Organise...
  19. stewang

    Hi all: I try to understand how to

    Hi all: I try to understand how to use uplevel. In my program, I create a button in a frame first, then I add a notifier to the button, if I click on the button, it will bring up a new window with a listbox, and a text in the right side of the listbox. But when I click on the button, I can not...
  20. stewang

    Dialog problem

    Hello: Would anyone help me to find out why it report to me wrong argument, after i run my code. button .button1 -text "Generic dialog" -command { tk_dialog .dialog "A modal dialog" "This dialog has grabbed input focus" "&quot...

Part and Inventory Search

Back
Top