tk scaling in python problem, HELP!

vogler at innercite.com vogler at innercite.com
Tue Oct 17 20:33:53 EDT 2000


Hi -

In the past I haven't gotten any response on my tcl/tk questions on
this forum, but here goes nothing (keeping my fingers crossed).

I'm using tcl/tk8.0 with python1.5.2. Everything was working fine with
the old tcl/tk version, but on 8.0 the scaling has changed. To set the
scaling to 1.0 (for example) in tk8.0 one issues the following command:

     tk scaling 1.0

I tried this with the tcl/tk interpretor wish80.exe and it worked
beautifully.

How do I call it within python? I tried the following command without
any success:

     self.master.tk.call( 'tk', 'scaling', '1.0' )

It appears that python passed it on to tcl/tk, but the scaling does not
change. I didn't get any error messages and python went on its merry
way.

I looked all over for documentation for tk.call(), but found nothing.
Am I using the API correctly?

TIA

Bill



Sent via Deja.com http://www.deja.com/
Before you buy.



More information about the Python-list mailing list