f



1. Thank you everyone for your help. 2. Tcl/Tk Designer 3. Text Editor Widget

Hello CLT

Thank you everyone that responds to my posts asking for info.  I really 
appreciate it.  At this stage of my tcl career I can ask many more 
questions than I can answer.

Speaking of questions, here are a few more:

1.  Is there a tcl/tk based user interface designer available?
     There has been no recent activity on VTCL, and SpecTcl looks even
     older.  I am not averse to using VTCL.  I would just prefer to use 	
     something that is being actively maintained.

2.  Is there a text editor widget that I can drop into an application?
     I realize I could put something together with the text widget and
     perhaps ntext.  The problem is that this editing feature is not the
     focus of my application.  It adds value for sure.  However I cannot
     spend much of my time there.
0
kuberan (19)
9/16/2007 2:07:12 AM
comp.lang.tcl 23429 articles. 2 followers. Post Follow

7 Replies
741 Views

Similar Articles

[PageSpeed] 13

Try ctext at http://wiki.tcl.tk/4134

/Ashok


On Sep 16, 7:07 am, Kuberan Naganathan <kube...@att.net> wrote:
> Hello CLT
>
> Thank you everyone that responds to my posts asking for info.  I really
> appreciate it.  At this stage of my tcl career I can ask many more
> questions than I can answer.
>
> Speaking of questions, here are a few more:
>
> 1.  Is there a tcl/tk based user interface designer available?
>      There has been no recent activity on VTCL, and SpecTcl looks even
>      older.  I am not averse to using VTCL.  I would just prefer to use
>      something that is being actively maintained.
>
> 2.  Is there a text editor widget that I can drop into an application?
>      I realize I could put something together with the text widget and
>      perhaps ntext.  The problem is that this editing feature is not the
>      focus of my application.  It adds value for sure.  However I cannot
>      spend much of my time there.


0
palmtcl (454)
9/16/2007 3:21:47 AM
Kuberan Naganathan schrieb:
> 1.  Is there a tcl/tk based user interface designer available?
>      There has been no recent activity on VTCL, and SpecTcl looks even
>      older.  I am not averse to using VTCL.  I would just prefer to use
>      something that is being actively maintained.

The reason why no-one bothers to use VTcl or SpecTcl seems to me that
most Tcl/Tk users just combine back-of-envelope (for design sketch)
and any good editor (I prefer emacs or PFE :^)

> 2.  Is there a text editor widget that I can drop into an application?
>      I realize I could put something together with the text widget and
>      perhaps ntext.  The problem is that this editing feature is not the
>      focus of my application.  It adds value for sure.  However I cannot
>      spend much of my time there.

What is the focus of your application? A plain [text] widget can bring
you a long way. You can make it read-only if you don't want the user
editing it (but still being able to copy its contents).

0
9/16/2007 11:51:17 AM
suchenwi wrote:
> Kuberan Naganathan schrieb:
>> 1.  Is there a tcl/tk based user interface designer available?
>>      There has been no recent activity on VTCL, and SpecTcl looks even
>>      older.  I am not averse to using VTCL.  I would just prefer to use
>>      something that is being actively maintained.
> 
> The reason why no-one bothers to use VTcl or SpecTcl seems to me that
> most Tcl/Tk users just combine back-of-envelope (for design sketch)
> and any good editor (I prefer emacs or PFE :^)
> 
>> 2.  Is there a text editor widget that I can drop into an application?
>>      I realize I could put something together with the text widget and
>>      perhaps ntext.  The problem is that this editing feature is not the
>>      focus of my application.  It adds value for sure.  However I cannot
>>      spend much of my time there.
> 
> What is the focus of your application? A plain [text] widget can bring
> you a long way. You can make it read-only if you don't want the user
> editing it (but still being able to copy its contents).
> 

I need something that can do sophisticated text editing.

1.  Multiple fonts.
2.  Bold/italic
3.  Bullets


These would be nice to have although not strictly necessary.
Just 1,2,3 above would be more than sufficient.

3.  Syntax highlighting for tcl/c/c++/java (I know ctext can do so this.)

4.  Image insertion
5.  export to pdf/ps/doc formats
6.  import from doc/pdf/ps formats

I want something like the WYSIWIG editors for WIKIs.

I've seen some reasonable tcl based text editors that I may be able to 
hack to get what I want.  However, I don't think the licenses for these 
tools would allow me to get this.

I am not disinclined to put together this functionality myself.  However 
I just don't have the time.


0
kuberan (19)
9/16/2007 6:45:53 PM
Kuberan Naganathan wrote:

> Hello CLT
> 
> Thank you everyone that responds to my posts asking for info.  I really
> appreciate it.  At this stage of my tcl career I can ask many more
> questions than I can answer.
> 
> Speaking of questions, here are a few more:
> 
> 1.  Is there a tcl/tk based user interface designer available?
>      There has been no recent activity on VTCL, and SpecTcl looks even
>      older.  I am not averse to using VTCL.  I would just prefer to use
>      something that is being actively maintained.
> 
> 2.  Is there a text editor widget that I can drop into an application?
>      I realize I could put something together with the text widget and
>      perhaps ntext.  The problem is that this editing feature is not the
>      focus of my application.  It adds value for sure.  However I cannot
>      spend much of my time there.

Take a look at TKproE at:

http://tkproe.sourceforge.net/

A new revision came out last month.

Dennis LaBelle
0
labelled (138)
9/17/2007 10:37:19 PM
On Sep 17, 6:37 pm, Dennis LaBelle <label...@nycap.rr.com> wrote:
> Kuberan Naganathan wrote:
> > Hello CLT
>
> > Thank you everyone that responds to my posts asking for info.  I really
> > appreciate it.  At this stage of my tcl career I can ask many more
> > questions than I can answer.
>
> > Speaking of questions, here are a few more:
>
> > 1.  Is there a tcl/tk based user interface designer available?
> >      There has been no recent activity onVTCL, and SpecTcl looks even
> >      older.  I am not averse to usingVTCL.  I would just prefer to use
> >      something that is being actively maintained.
>
> > 2.  Is there a text editor widget that I can drop into an application?
> >      I realize I could put something together with the text widget and
> >      perhaps ntext.  The problem is that this editing feature is not the
> >      focus of my application.  It adds value for sure.  However I cannot
> >      spend much of my time there.
>
> Take a look at TKproE at:
>
> http://tkproe.sourceforge.net/
>
> A new revision came out last month.
>
> Dennis LaBelle

Well a step-by-step tutorial would help. Also for beginners it would
be groovy if the icons had attached balloon messages. One of the
advantages of the now-outdated vtcl was that it come with two step by
step tutorials.  But now it blows up on tcl8.5b1 because it wants an
exact version. tkproe seems to be functional but it surely isn't
newbie friendly.
Maybe I can find an old XF tutorial somewhere.

John Culleton




0
john137 (804)
10/4/2007 8:10:59 PM
> 1.  Is there a tcl/tk based user interface designer available?
>      There has been no recent activity on VTCL, and SpecTcl looks even
>      older.  I am not averse to using VTCL.  I would just prefer to
>      use something that is being actively maintained.

Depending on the type of application you are developing - You may find
GRIDPLUS useful (http://www.satisoft.com/tcltk/gridplus2/index.html)

Regards,
   =Adrian=

0
adrian488 (174)
10/5/2007 7:57:07 AM
On Sep 15, 10:07 pm, Kuberan Naganathan <kube...@att.net> wrote:

> 1.  Is there a tcl/tk based user interface designer available?
>      There has been no recent activity on VTCL, and SpecTcl looks even
>      older.  I am not averse to using VTCL.  I would just prefer to use
>      something that is being actively maintained.
>

http://wiki.tcl.tk/spectcl discusses how during 2007 a new generation
of spectcl was updated at sf.net, donated by ActiveState. The code was
spun off from Komodo, and is the most current of the Tk graphical
interface editors. Note that you should reference the discussion on
http://spectcl.sf.net/ directly - the code for the newer  spectcl is
not in the sf.net cvs repository, but sf.net's svn source repository.

0
lvirden (1938)
10/5/2007 12:24:11 PM
Reply:

Similar Artilces:

[1 1 1 1 1 ;2 2 2 2 2 ;3 3 3 3 3 3;....;n n n n n]
Hi, Anybody knows how to create this matrix but without using any loops? a=[1 1 1 1 1 ;2 2 2 2 2 ;3 3 3 3 3 ;.......;n n n n n ] Thank you. Hana. Hana wrote: > Hi, > Anybody knows how to create this matrix but without using any loops? > a=[1 1 1 1 1 ;2 2 2 2 2 ;3 3 3 3 3 ;.......;n n n n n ] HELP REPMAT - Randy Hana wrote: > > > Hi, > Anybody knows how to create this matrix but without using any > loops? > a=[1 1 1 1 1 ;2 2 2 2 2 ;3 3 3 3 3 ;.......;n n n n n ] > > Thank you. > Hana. Hope this isn't homework. >> repmat([1:n]'...

how to "(1-3*x^2)/(1-3*x+x^2+2*x^3) => 1/(1-2*x) + x/(1-x-x^2)"?
hi normal(1/(1-2*x) + x/ (1-x-x^2),expanded); 1/(1-2*x) + x/(1-x-x^2) => (1-3*x^2)/(1-3*x+x^2+2*x^3) how to do the reverse? dillogimp@gmail.com writes: > normal(1/(1-2*x) + x/ (1-x-x^2),expanded); > 1/(1-2*x) + x/(1-x-x^2) => (1-3*x^2)/(1-3*x+x^2+2*x^3) > how to do the reverse? convert(%,parfrac,x); -- Joe Riel ...

#1 #n+1 #2n+1 #2 #n+2 #2n+2 #3 #n+3 #2n+3 #n #2n #3n #1 #2 #3 #n #n+1 #n+2 #n+3 #2n #2n+1 100 Gbps aggregate stream of 64/66b words virtual lane markers virtual lane 1 virtual lane 2 virtual lan
#1 #n+1 #2n+1 #2 #n+2 #2n+2 #3 #n+3 #2n+3 #n #2n #3n #1 #2 #3 #n #n+1 #n+2 #n+3 #2n #2n+1 100 Gbps aggregate stream of 64/66b words virtual lane markers virtual lane 1 virtual lane 2 virtual lane 3 virtual lane n Simple 66-bit word level round robin distribution Transmit PM Transmit PM Receive PM Receive PM Transmit PC Receive PC 1 0.0 1.0 0.1 0.2 0.3 1.2 1.2 1.1 0.0 1.0 0.1 1.1 2.0 3.0 4.0 6.0 7.0 9.0 10.0 11.0 12.0 13.0 14.0 15.0 17.0 18.0 19.0 2.0 3.0 4.0 5.0 6.0 7.0 8.0 9.0 10.0 11.0 12.0 13.0 14.0 15.0 16.0 17.0 1...

Help construct a tree 1 -> 1.1 -> 1.2 -> 2 -> 2.1 -> 2.1.1 etc HELP !!!!!!!
Folks I need help. I have a view or(Text file) as follows: '1 2.1 1.1.1 1.1.1.1 2.2.1 1.3 2 Dim Parent() As String Dim Level1() As String Dim Level2() As String Dim Level3() As String etc .. How can I construct a tree. parent, children, grand children etc... and also figure out # of children # of grand children etc Thanks "Mos" <lndebug@gmail.com> wrote in message news:875cd1df-7605-45ab-9f7b-f1edec25d47b@r34g2000vbi.googlegroups.com... > Folks I need help. I have a view or(Text file) as follows: > > '1 > 2.1 > 1.1.1 > 1....

Help construct a tree 1 -> 1.1 -> 1.2 -> 2 -> 2.1 -> 2.1.1 etc HELP !!!!!!!
Borland Guru's I need help I have a text file as follows: 1 2 1.1 1.1.1 3.3 2.3 etc I cannot use a control active x tree I need to read this file and 1 is a parent 1.1 is a child of parent 1 and 2 is a parent 2.3 is a child of parent 2 and construct in search a way using arrays or probably a recursive function No xml parsing just read a file. Does any body have a function "Mos" <lndebug@gmail.com> wrote in message news:c1aaeb20-3c1f-408d-9986-bb8d28a87509@s31g2000vbp.googlegroups.com... > I have a text file as follows: > 1 > 2 > 1.1 >...

Help construct a tree 1 -> 1.1 -> 1.2 -> 2 -> 2.1 -> 2.1.1 etc HELP !!!!!!!
Folks I need help. I have a view or(Text file) as follows: '1 2.1 1.1.1 1.1.1.1 2.2.1 1.3 2 Dim Parent() As String Dim Level1() As String Dim Level2() As String Dim Level3() As String etc .. How can I construct a tree. parent, children, grand children etc... and also figure out # of children # of grand children etc Thanks "Mos" <lndebug@gmail.com> wrote in message news:875cd1df-7605-45ab-9f7b-f1edec25d47b@r34g2000vbi.googlegroups.com... > Folks I need help. I have a view or(Text file) as follows: > > '1 > 2.1 > 1.1.1 > 1....

Move from Tk 8.3 / Img 1.2.3 to Tk 8.5 / Img 1.3 results in unexpected behavior
Platform: Tk programs running on sparc solaris 9 or 10, displaying back to Windows XP. I got a report of a Tk application that was core dumping. I asked for a small coherent example and got something relatively small - about 2 dozen lines. The example script displays a TIFF image using Img. When the script runs on Tk 8.3/ Img 1.2.3 , it displays as expected. When it runs on Tk 8.5/Img 1.3, it fails. HOWEVER, the twist is that it is failing on the developer's machine, and a number of others, but two or three of us do not see a failure with 8.5. At least one difference i...

Will Ruby 1.8.2 include tcl/tk 8.4.x instead of 8.3?
Will Ruby 1.8.2 release come with tcl/tk 8.4.7 libraries? Thanks. Hi, From: "H. Simpson" <nospam@asdlkfjhasldkjfsadlfhskadjfahsldfks.com> Subject: Will Ruby 1.8.2 include tcl/tk 8.4.x instead of 8.3? Date: Mon, 2 Aug 2004 17:01:40 +0900 Message-ID: <HwmPc.1858$Z56.480@newssvr33.news.prodigy.com> > Will Ruby 1.8.2 release come with tcl/tk 8.4.7 libraries? Is that a binary package of Ruby 1.8.2 ? If you say about source files, Ruby/Tk can work with Tcl/Tk8.4.7. I already tested that Ruby/Tk works with Tcl/Tk8.4.7 and 8.5a1 (and ActiveTcl-8.4.6.1 binary package). U...

Tcl/Tk version needed for Treectrl 2.1.1
Hi, What Tcl and Tk library versions are needed for using TreeCtrl 2.1.1? In the pkgIndex.tcl file for treectrl package, it says "package require Tcl 8.4". So, i guess, It doesn't matter if I have 8.4.7 or 8.4.13. Can you please confirm this? Are there any other libraries/ specific versions I need to run treectrl 2.1.1? Also, the latest treectrl version 2.2.1 fixes some crashes. Are those crashes intoduced in treectrl 2.2 or were there in 2.1.1 also? I am upgrading my treectrl package(from 1.1) so as to use the embedded window functionality in my application. Which treectrl version is recommeded(least problems/crashes, hopefully)? Thanks, Mona. Mona wrote: > Hi, > > What Tcl and Tk library versions are needed for using TreeCtrl 2.1.1? > > In the pkgIndex.tcl file for treectrl package, it says "package require > Tcl 8.4". So, i guess, It doesn't matter if I have 8.4.7 or 8.4.13. > Can you please confirm this? 8.4.0 and later will satisfy the package require. > Are there any other libraries/ specific versions I need to run treectrl > 2.1.1? I *think* treectrl is nice and list all of its requirements in its pkgIndex.tcl. So as long as you have 8.4 of Tcl/Tk you should be safe. > ... -- +--------------------------------+---------------------------------------+ | Gerald W. Lester | |"The man who fights for his ideals is the man who is alive.&quo...

Newbie question; why (cons (list 1 2) (list 3 4)) is ((1 2) 3 4) and not ((1 2) (3 4))
Hi, I just started to learn LISP, and stumbled in SICP upon (cons (list 1 2) (list 3 4)) is evaluated to ((1 2) 3 4) I do not understand why this is not: ((1 2) (3 4)) because (cdr (cons (list 1 2) (list 3 4))) is (3 4) and (car (cons (list 1 2) (list 3 4))) is (1 2) Is there a logical explanation? Thank you for your patience. -- Greg Out of order, gregor <gregor@ediwo.com> writes: > Is there a logical explanation? Yes. > I just started to learn LISP, and stumbled in SICP upon But first, let's talk about LISP, Lisp, Scheme and Common Lisp. LISP is the name of the programming language invented in 1959 by John McCarthy and of the first program implementing it written amongst other by Steve Russel, one of his students. LISP 1.5 is a segueing version of that same program dating about 1962 that had some distribution. Then various lisp languages were developed at various places by various teams. Names such as MacLisp, InterLisp, LeLisp, StandardLisp, vLisp, Lisp Machine Lisp, Scheme, GNU Emacs Lisp, etc. It was quite a mess, and people had a hard time sharing programs. So they talked and designed and wrote and voted and produced the ANSI Common Lisp standard (in the USA), meanwhile in Europe they produced the ISO Lisp standard. Nowadays, almost all the other lisps are "dead", with only scheme (current version r5rs, r7r...

ANNOUNCE: GRIDPLUS 1.1
GRIDPLUS 1.1 has been released and is available from: http://www.satisoft.com/tcltk/gridplus ENHANCEMENTS: ==================== *) The "text" widget now has an "HTML style" tags processing mode. The tags can be used to set attributes (font, font size, foreground/background colours, underline and bold), set text indenting, create links (To move the display to other parts of the text or to invoke TCL procedures), embed images or ICONS package icons (Which may also be links or invoke TCL procedures). *) New GRIDPLUS "goto" command/mode to allow the "text"...

HoldForm[1*2*3] should give 1 x 2 x 3 not 2 x 3
HoldForm[] is loosing the 1* when it apparently should not: In[1]:= HoldForm[1*2*3] Out[1]= 2 x 3 In[2]:= HoldForm[1*1*1] Out[2]= 1 x 1 x 1 In[3]:= HoldForm[3*2*1] Out[3]= 3 x 2 In[4]:= HoldForm[2*2*2] Out[4]= 2 x 2 x 2 In[5]:= HoldForm[2*1*3] Out[5]= 2 x 3 In[6]:= HoldForm[1*2] Out[6]= 1 x 2 In[7]:= HoldForm[1*2*1] Out[7]= 1 x 2 x 1 Q.E.D. Indeed, the same happens with Hold and HoldComplete. I'd say this is a bug. Cheers -- Sjoerd On Feb 25, 11:07 am, "Q.E.D." <a...@netzero.net> wrote: > HoldForm[] is loosing the 1* when it...

building GCC 3.3.2 or 3.2.3 on Unixware 7.1.1
Has anybody done this successfully? I'm running into problems with the C++ library. AFAICT, the compiler is built ok (bootstrapping all succeeds), but the C++ library chokes. It seems to mostly be complaining about the 'volatile' keyword in pthread.h. I'm using binutils, btw. The ccs based build fails to bootstrap for me. Best regards, Brent Brent Eagles wrote: > Has anybody done this successfully? > > I'm running into problems with the C++ library. AFAICT, the compiler is > built ok (bootstrapping all succeeds), but the C++ library...

ANN: Releases 2.2.1 and 2.2.2 of TclWS (Web Services for Tcl)
Announcing releases 2.2.1 and 2.2.2 of TclWS (Web Services for Tcl). They are available at http://core.tcl.tk/tclws -- +------------------------------------------------------------------------+ | Gerald W. Lester, President, KNG Consulting LLC | | Email: Gerald.Lester@kng-consulting.net | +------------------------------------------------------------------------+ ...

Tcl/Tk 8.6.3, Itcl 4.0.2, sqlite 3.8.7 Release Candidates
Release candidate downloads of the 8.6.3 releases of Tcl and Tk, Itcl 4.0.2, and sqlite 3.8.7 may now be found at https://sourceforge.net/projects/tcl/files/Tcl/8.6.3/ The actual releases of these files should come on October 29. Until then, enjoy this advance preview, and if you find anything catastrophically wrong with them, please inform me so we can fix the problem before the true release. -- | Don Porter Applied and Computational Mathematics Division | | donald.porter@nist.gov Information Technology Laboratory | | http://math.nist.gov/~DPorter/...

Segmentation fault returning value in Thread for Tcl 8.3.5/Thread 2.5 (2.1.5)
I wrote a simple "exec" function that runs the specified program in another thread, splits out the stdout and stderr output and returns asynchronously. (I attached the script and traceback from the core dump at the end of this message.) I started off using Tcl 8.3.5/Thread 2.5 (2.1.5). It seems that if the script running in the other thread returns a value using "return $result", I get a core dump. But, if I return the value using "set result", it doesn't core dump. If I use Tcl 8.4.5/Thread 2.5.2, the script throws an error condition if I use "re...

Tcl-URL!
QOTW: "You have to remember the serial dogma: First you do requirements, then design, the programming, then testing. Testing is so far removed from the up-front stuff that clearly someone else should do that work, enabling the data professionals to focus on data management stuff." - Scott Ambler Thanks to Arjen Markus for his weekly summary of Wiki action: Again a week has passed. It is time for the Wiki summary Visual bits and pieces - Interested in maps of the world? Try this page and some of its links: <http://wiki.tcl.tk/19618> - An amazing clock, even though not everybody is fond of digital ones anymore - <http://wiki.tcl.tk/17308> - An old page with a lot of lost links, but it may give you some ideas ... <http://wiki.tcl.tk/2389> - The functionality of the text widget in Tcl/Tk 8.5 obsoletes this page on moving the cursor: <http://wiki.tcl.tk/3082>. Another reason to upgrade. Visible bits and pieces - With Tcl/Tk 8.5 comes a bunch of new C functions - here is an overview - <http://wiki.tcl.tk/20591> - Want to know how to work with "Teacup", the facility to update or get packages from the repository? <http://wiki.tcl.tk/17305> - A nice little plugin for do-it-yourself text editors: save or revert changes. Check out: <http://wiki.tcl.tk/17166> - Yet another standard, its usefulness and appreciation are unknown, but read it...

HELP! REFRESHING LABEL WIDGET IN TCL/TK
hi everyone, i'm a newbie to tcl/tk. i want to change the value of a label (using -text option)in a while loop. ex: label .l1 -text "value of i" pack .l1 set i 10 while { $i>0} { .l1 configure -text "$i" # changing the text value of label after 500 incr i -1 } In this loop, i have even used delay( "after 500") . but i get only the final value( i =1) displayed on the label . can anyone help me in refreshing the label widget. pralini@gmail.com wrote: > hi everyone, > i'm a newbie to tcl/t...

Text/C editor written in Tcl/Tk
Dear all, I have used the Tk text widget for some time. It is the most powerful text widget I have ever seen. My feeling is that it should not be very difficult to build a great editor out of it. I am currently using jEdit which is written in Java. Is there any editor written in Tcl/Tk written that is comparable to jEdit, Emacs, Vim existed some where? I checked Google and was unable to find one. Thanks a lot! Best regards, Jingzhao ouj wrote: > Dear all, > > I have used the Tk text widget for some time. It is the most powerful text > widget I have ever seen. My feeling is ...

Help, python 2.3.3 and mpich 1.2.5 is not compatible!!!
I want to manipulate mpich api through python. I wrote a extension module in C (ext1.c) and a test (test ext1 module)python script (test.py). When I try to run the test.py by inputting "mpirun -np 2 /usr/local/bin/python test.py" I got the error message like "/usr/local/bin/python: can't open file 'cluster2' p0_4691: p4_error: Child process exited while making connection to remote process on cluster1: 0 p0_4691: (2.752743) net_send: could not write to fd=4, errno = 32" Because I have already tested all the mpich examples successfully, I guess mpich and network is OK. Can anybody help me? ************** Environement ************** RedHat Linux Enterprize 3, mpich 1.2.5, python 2.3.3, OpenSSL 0.9.7a Feb 19 2003, ************** ext1.c ************** #include "mpi.h" #include <stdio.h> #include <math.h> double f( double ); double f( double a ) { return (4.0 / (1.0 + a*a)); } int main( int argc, char *argv[]) { int done = 0, n, myid, numprocs, i; double PI25DT = 3.141592653589793238462643; double mypi, pi, h, sum, x; double startwtime = 0.0, endwtime; int namelen; char processor_name[MPI_MAX_PROCESSOR_NAME]; MPI_Init(&argc,&argv); MPI_Comm_size(MPI_COMM_WORLD,&numprocs); MPI_Comm_rank(MPI_COMM_WORLD,&myid); MPI_Get_processor_name(processor_name,&namelen); fprintf(stderr,"Process %d on %s\n", myid, processor_name); n = 0; whil...

[1,2,3] exactly same as [1,2,3,] ?
x=[1,2,3] and x=[1,2,3,] are exactly the same, right? I'm generating some python data, and it's less error prone to not treat the last element specially, but I want to be sure I'm generating an equivalent data structure. Many TIA! Mark -- Mark Harrison Pixar Animation Studios mh@pixar.com wrote: > x=[1,2,3] > and > x=[1,2,3,] > > are exactly the same, right? When confronted with this type of question, I ask the interpreter: {{{ mac:~ pmcnett$ python Python 2.5.2 (r252:60911, Feb 22 2008, 07:57:53) [GCC 4.0.1 (Apple Computer, Inc. build 5363)] on darwin Type ...

[TCL/TK interface] Passing variable to TCL/TK
Hi, I am trying to sent to a variable to tcl/tk and unify there it with a string. I wrote the prolog code: :- use_module(library(tcltk)). :- use_package(classic). go(A):- tk_new([name('Simple')], Tcl), tcl_eval(Tcl, 'source simple2.tcl', _), tcl_eval(Tcl, ['ask', br(write(A))], _), tk_main_loop(Tcl), tcl_delete(Tcl). and the tcl file simple2.tcl proc ask {var} { unify_term $var my_value } unfortunatelly when I query for go(S). the interpeter goes into a loop (!?). Where I am wrong. Are there any example code somewhere i...

tcl/tk 8.4 text widget question
Hi! Can you help. I have a gui script that displays the output of commands as they are ran in a text widget with scroll bar. However, once the output goes past the height of the text widget, the text does not automatically scroll down. When the processing is complete, I have to scroll to the bottom to see the last few lines including the line where it says "Processing complete" Does anyone know how to fix this? Meg Cooper mulkey_mouse@cox.net wrote: > Hi! > Can you help. > I have a gui script that displays the output of commands as they are > ran in a text widget with scroll bar. However, once the output goes > past the height of the text widget, the text does not automatically > scroll down. When the processing is complete, I have to scroll to the > bottom to see the last few lines including the line where it says > "Processing complete" > > Does anyone know how to fix this? > Meg Cooper Try... $txt see end .... after you add each new line of text. Jeff Hey!! Thanks!! It worked like a charm. ---------- Forwarded message ---------- From: Jeff Godfrey <jeff_godf...@pobox.com> Date: Feb 25, 12:32=A0pm Subject: tcl/tk 8.4 text widget question To: comp.lang.tcl mulkey_mo...@cox.net wrote: > Hi! > Can you help. > I have a gui script that displays the output of commands as they are > ran in a text widget with scroll bar. However, once the output goes > past the height of the text widget, the tex...

in Tcl/tk, How can I redirect stdout to a text widget?
I already wrote a tcl script. there are many output information sent to stdout in the script. Now I'm using TK to optimize this script, I hope to redirect all output information to a text widget, How can i do it? I tried to rediect output information to a file, it's OK. then I want to use "fileevent" command to trace the file's action and then send new information to a text widget. but system say that "filehandle cannot be read" error. I think that the reason should be the file is open for "w" and cannot be read. How can i do it? close stdout ...

Web resources about - 1. Thank you everyone for your help. 2. Tcl/Tk Designer 3. Text Editor Widget - comp.lang.tcl

WATCH LIVE: Donald Trump Holds Campaign Event in Bloomington, IL
Donald Trump will be holding a campaign rally today in Bloomington, IL at the Synergy Flight Center. The event is scheduled to start at 11 a.m. ...

Two people killed in ultralight plane crash in Yarrawonga
Two people have been killed in an ultralight plane crash in the state's far north.

26-year-old man arrested in connection with Iditarod crashes
CBS News 26-year-old man arrested in connection with Iditarod crashes STLtoday.com ANCHORAGE, Alaska (AP) — A man suspected of intentionally ...

Nickelodeon’s 2016 Kids’ Choice Awards
Show host Blake Shelton is ‘slimed’ during Nickelodeon’s 2016 Kids’ Choice Awards in Inglewood, California. — Reuters pic

Finally, human wins Go match against AI AlphaGo program
SEOUL, South Korea — A champion Go player scored his first win over a Go-playing computer program on Sunday after losing three straight times ...

Officials say unrest at prison in Alabama leaves 2 hurt
Inmates set a fire, seized control of a dormitory and stabbed two corrections officials during a violent uprising at a prison in southern Alabama, ...

The Case Against the Case Against Daylight Saving Time
CBS News The Case Against the Case Against Daylight Saving Time Motherboard For most of us, daylight saving time (yep, there's no "s") equals ...

Germanwings Crash Report: Investigators Urge Better Reporting After Doctor Refused To Divulge Pilot’s ...
A Germanwings crash report has revealed that doctors who treated Germanwings pilot Andreas Lubitz for depression and mental illness before he ...

Solar EV Charging Station Built By High School Students
Originally published on Sustainnovate. By Henry Lindon A working solar electric vehicle charging station was recently built by a team of students ...

Unusually widespread flooding across Louisiana, Mississippi
HATTIESBURG, Miss. (AP) — As the Leaf River rose north of Hattiesburg, Mississippi, 26-year-old Rebecca Bruce and her fiancé grabbed what they ...

Resources last updated: 3/13/2016 1:51:14 PM