En Sun, 28 Dec 2008 06:43:20 -0200, Pavel Kosina 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 key"7" on numeric keypad for left-up moving but seems to me,
that "4"+"8" is
On 28 Gru, 09:43, Pavel Kosina 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 key"7" on numeric keypad for left-up moving but seems to me,
> that "4"+"8" is much more standard f
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 ne
On 27 Gru, 15:08, Pavel Kosina 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
>
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)
m
On 26 Gru, 17:44, Pavel Kosina wrote:
> janislaw napsal(a):
>
> > On 26 Gru, 05:52, Pavel Kosina 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
janislaw napsal(a):
On 26 Gru, 05:52, Pavel Kosina 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
On 26 Gru, 05:52, Pavel Kosina 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 (e
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