[Tutor] (no subject)

alan.gauld@bt.com alan.gauld@bt.com
Mon, 22 Jan 2001 13:10:45 -0000

> some special stuff in Python. (And is it possible to use a 
> GUI with Perl?)

Yes Tk is available in Perl.

> 2. What all does ScrollingText support? 

It might be worth your while looking at the Tk widget demo 
program that installs with Tcl/Tk.
Its written in Tcl but does show the various config settings 
for most of the widgets.

Alternatively buy Tcl/Tk in a Nutshell from O'Reilly, its a 
very good reference to Tcl including Tk.

> 3. What are, and how do I use classes? 

Try my beginners tutor at:


Specifically the OO page, the event Driven page and the 
Case study. They all explain and/or demonstrate classes 
and OO programming. There is also a little bit of Tkinter 
in the last two but not very much.

> 6. How do I check if they have made any changes to a file, 
> and do something according to whether they have or not?

Normally you create something called a "dirtyflag". 
Everytime an edit function changes the contents ypu set the dirtyflag to
true. After a sve you reset it to false. Then if they hit Save you can do:

if dirtyflag:
   # save it here

The textwidget may have something similar built in I don't remember, 
but I doubt it.

Alan G