Il 07/07/2010 9.11, Alan Gauld wrote:
"Francesco Loffredo" wrote
... What's the
difference between the two methods?
Its a little bit subtle but I believbe update() updates all widgets
whereas update_idle_tasks will only update those widgets that
have changed since the last update. In a co
"Francesco Loffredo" wrote
You can ask the canvas to repaint itself by calling
update_idle_tasks()
method.
Thank you, Alan. As many answers, this poses me a new question: why
should I call update_idle_tasks() instead of update() ? What's the
difference between the two methods?
Its a littl
Il 06/07/2010 17.32, Alan Gauld wrote:
"Francesco Loffredo" wrote
How can I ask a Canvas to redraw itself at my command? And if i can't,
when should I call the auto move?
You can ask the canvas to repaint itself by calling update_idle_tasks()
method.
Thank you, Alan. As many answers, this p
RTFM I happened to find the answer just a couple of hours after
having sent this message. How could I miss the update method of the Canvas?
Now my game works as expected, maybe I'll post it when it's complete.
Thanks to all!
Francesco
Il 05/07/2010 21.00, Francesco Loffredo ha scritto:
He
"Francesco Loffredo" wrote
How can I ask a Canvas to redraw itself at my command? And if i
can't, when should I call the auto move?
You can ask the canvas to repaint itself by calling
update_idle_tasks()
method. But in general you shouldn't need to. It's usually better to
keep
your event h
Hello all, this is the first time I ask for advice but I've been lurking
for some month and i'm sure I'll find more than I need.
I'm learning Python and Tkinter, and I chose an old board game as a
practice field. I used a Canvas and many Polygons, one for each
hexagonal space of the board, and I
Hello,
Thanks a lot for the pointers, Kent, and the explanations, Michael!
> There is an undocumented hook that lets you change this - the
function > Tk.report_callback_exception() is called to actually report
the error. > You can redefine this function to do what you want. Here
are a couple
[EMAIL PROTECTED] wrote:
> What I don't understand is
>>>import Tix
>>>
>>>def raise_exception():
>>> print 1/0
>>>
>>>if __name__ == '__main__':
>>>root = Tix.Tk()
>>>root.title("Exception demo")
>>>
>>>Tix.Button(root, text = "Don't press", command =
>
> raise_exception).pack()
>
On Wed, 16 Nov 2005 10:55:24 +0100 (MET)
[EMAIL PROTECTED] wrote:
Hi Karsten,
> I thought the mainloop() function is something like
>
> def mainloop():
> e= get_event()
> if e:
> for w in widgets: w.handle(e)
>
> but apparently it is not.
>
> It's not bad that the Tkinter windows don't
Hello Michael, hello list,
thanks for the info that pmw displays exceptions.
What I don't understand is
>> --- snip ---
>> import Tix
>>
>> def raise_exception():
>> print 1/0
>>
>> if __name__ == '__main__':
>> root = Tix.Tk()
>> root.title("Exception demo")
>>
>> Tix.Button
10 matches
Mail list logo