Hi Anirban,
i understand You are looking for something like
proc submit_details {} {
set submit_data [string trim [f2.t2 get 1.0 end]]
# do whatever you need with $submit_data
puts "Submitted Data:"
puts $submit_data
}
Tobias Gabele
Bierwirth & Gabele SoftwareDesign GBR...
Hi Anirban,
consider using a label instead of the text widget if you don't need text widget funcionality.
Your code example doesn't work because the insert operation requires that widget state is not disabled.
Change it to the following:
text .f2.t1 -bd 1 -highlightbackground black...
Hi vignette1,
if Your application runs on a sun solaris system, i see no easy way to generate the native excel file format. The tcom solution suggested by marsd is limited to windows platforms. Excel does however handle csv and HTML plain text formats reasonably well. Therefore i would suggest...
sorry, correction
first line in proc status_update must be:
global ftpstatustext
Tobias Gabele
Bierwirth & Gabele SoftwareDesign GBR
http://uni-sql.de/gabele/projects.html
Hi,
i would suggest splitting gui and statusupdate in two procs. The status_update proc calls itself after every 5 seconds
set message(offline) "down :-("
set message(online) "up! :-)"
set ftpstatustext "not determined"
proc status_gui {} {
catch {destroy...
for performance reasons i would suggest to use tr here:
the command
tr "\n" " " < myinputfile.txt
maps all newline characters (including the last one) to space characters.
regards,
Tobias
Tobias Gabele
Bierwirth & Gabele SoftwareDesign GBR...
I tested your commands under RedHat 9 / Tcl 8.3 / vsftpd-1.1.3-8 and had no errors. Maybe there is something wrong with your installation?
Alternative way to determine the username:
set USER_NAME $::tcl_platform(user)
to make sure a unix command is executed in a bash context,
consider
set...
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.