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...
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]...
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...
Hello all:
Thanks for you come to my question, I decide to give up this problem, I think it is not very good idea for my application.
Thanks
rgds
stewang
Sorry, I make you confuse.
My question is how to search a file If I don't known which directory the file is belong to.
For example, if I try to looke for the file of " test.tk " , but I don't where they are,or I am not sure I have this file or not, then I go to the function of search...
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...
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...
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...
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...
Thanks ulis, I am sorry that I misunderstood what you said, and I tyied to find some reference meterial from website.
Thanks for your time.
rgds
stewang
Hello ulis:
I am very Sorry, I still can not solve the problem.
I added the command of the "bind . <3> { tk_getOpenFile }" to my code. When I open the file dialog box and click right mouse on it, it doesn't work. But after I load a contains of file on to the window, if I right 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...
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...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.