I'm experiencing strange behaviour from Python. The documentation says that the expression
is used to clear all callbacks for EButton1Down event. However, after this line is used in a program, Python silently crashes whenever I click the screen. Am I doing something wrong?
A little program to illustrate the trouble:
This program crashes Python whenever I click the black area of the screen. The workaround I found is to use
import appuifw, graphics, e32
from key_codes import *
img = None
canvas = appuifw.Canvas(redraw_callback = handle_redraw)
appuifw.app.body = canvas
appuifw.app.screen = "large"
appuifw.app.directional_pad = False
appuifw.app.exit_key_handler = app_quit
img = graphics.Image.new(canvas.size)
app_lock = e32.Ao_lock()
after clearing the callbacks, but I want to know if that's a bug or just my own error?