Re: tkinter 3.0 multiple keyboard events together

2008-12-28 Thread Pavel Kosina
janislaw napsal(a): Um, I could be only guessing what are you meant to do, unless you describe your problem in more detailed way. I.e. describe the desired behaviour, show code which you have, and describe the current behaviour. well, I am working on a tutorial for youngster (thats why i

Re: tkinter 3.0 multiple keyboard events together

2008-12-28 Thread janislaw
On 28 Gru, 09:43, Pavel Kosina g...@post.cz wrote: well, I am working on a tutorial for youngster (thats why i need to stay the code as easy as possible). In this game you are hunted by robots. I could use key7 on numeric keypad for left-up moving but seems to me, that 4+8 is much more

Re: tkinter 3.0 multiple keyboard events together

2008-12-28 Thread Gabriel Genellina
En Sun, 28 Dec 2008 06:43:20 -0200, Pavel Kosina g...@post.cz escribió: well, I am working on a tutorial for youngster (thats why i need to stay the code as easy as possible). In this game you are hunted by robots. I could use key7 on numeric keypad for left-up moving but seems to me, that

Re: tkinter 3.0 multiple keyboard events together

2008-12-27 Thread janislaw
On 26 Gru, 17:44, Pavel Kosina g...@post.cz wrote: janislaw napsal(a): On 26 Gru, 05:52, Pavel Kosina g...@post.cz wrote: Is it possible to catch in an event more that one key from keyboard? In my code, I can handle always the only one, the first I press, the others are omitted. Say, I

Re: tkinter 3.0 multiple keyboard events together

2008-12-27 Thread Pavel Kosina
janislaw napsal(a): Use google to find the appropriate site, or browse this site, there are plenty of examples. You may want to examine the code I wrote to you to catch the idea: #-- import Tkinter import pprint tk = Tkinter.Tk() f = Tkinter.Frame(tk, width=100, height=100)

Re: tkinter 3.0 multiple keyboard events together

2008-12-27 Thread janislaw
On 27 Gru, 15:08, Pavel Kosina g...@post.cz wrote: janislaw napsal(a): Use google to find the appropriate site, or browse this site, there are plenty of examples. You may want to examine the code I wrote to you to catch the idea: #-- import Tkinter import pprint

Re: tkinter 3.0 multiple keyboard events together

2008-12-26 Thread janislaw
On 26 Gru, 05:52, Pavel Kosina g...@post.cz wrote: Is it possible to catch in an event more that one key from keyboard? In my code, I can handle always the only one, the first I press, the others are omitted. Say, I press both 4 and 8 and only 4 is catched. def movePlayer(event):     print

Re: tkinter 3.0 multiple keyboard events together

2008-12-26 Thread Pavel Kosina
janislaw napsal(a): On 26 Gru, 05:52, Pavel Kosina g...@post.cz wrote: Is it possible to catch in an event more that one key from keyboard? In my code, I can handle always the only one, the first I press, the others are omitted. Say, I press both 4 and 8 and only 4 is catched. def

tkinter 3.0 multiple keyboard events together

2008-12-25 Thread Pavel Kosina
Is it possible to catch in an event more that one key from keyboard? In my code, I can handle always the only one, the first I press, the others are omitted. Say, I press both 4 and 8 and only 4 is catched. def movePlayer(event): print (event.keysym) Thank you. -- geon Pavel Kosina --