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...
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...
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...
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...
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...
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...
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...
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...
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"...
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...
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...
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...
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" ""...
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.