[Pythonmac-SIG] Carbon Tkinter/Python 2.2
Jack Jansen
Jack.Jansen@oratrix.nl
Fri, 25 Jan 2002 00:04:29 +0100
At 21:23 -0600 23-01-2002, Christopher Smith wrote:
>Hello all,
>
>I'm having problems getting a program I use to be able to run to run under
>the new release (2.2) with Carbon/Tk upgrades.
>
>BACKGROUND
>
>The program is recon (a regular expression console) located at
>
>http://erburley.home.netcom.com/recon.py
>
>I have installed the "fourth attempt" PythonCoreCarbon and _tkinter*
>library file.
>
>I am using MacOS 8.6.
>
>BEHAVIOR
>
>The script is executed by the interpreter and successfully builds the
>console. However, as soon as I press any key, the cursor appears and the
>program does not respond to mouse clicks or typing (you are suppose to be
>able to enter text in a couple different text boxes and interact with
>check-boxes.
Chris,
I can repeat this behaviour, thanks for the good example (nice
program, by the way!).
I need help debugging this, so all Tkinter fans please try this
program and come up with theories.
One problem is simple (at least, simple to describe:-): the default
mouse cursor, the arrow, isn't shown. Other cursors, such as the text
cursor when you're over any of the text fields, show up fine.
The next problem, the event problem, is more complex. At least, the
way I get to see the problem. All events happen, but some happen
late, and the order in which they happen seems to be different from
the order in which they should happen.
I've been clicking back and forth between the two text fields and
trying to click the "evaluate" button. Every time you actually
generate an event (mouseclick, key press) an old event will happen,
but which one is unknown. Also, mouse clicks don't always seem to be
interpreted at the place at which they actually happened.
If people can helkp me find the pattern in what exactly is happening
here that would be really helpful. Also, if you think you have the
pattern, please give a recipe for how to see it