commit-gnue
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

gnue/common/src/cursing Event.py


From: Jason Cater
Subject: gnue/common/src/cursing Event.py
Date: Tue, 05 Nov 2002 14:37:14 -0500

CVSROOT:        /cvsroot/gnue
Module name:    gnue
Changes by:     Jason Cater <address@hidden>    02/11/05 14:37:14

Modified files:
        common/src/cursing: Event.py 

Log message:
        typos

CVSWeb URLs:
http://savannah.gnu.org/cgi-bin/viewcvs/gnue/gnue/common/src/cursing/Event.py.diff?tr1=1.3&tr2=1.4&r1=text&r2=text

Patches:
Index: gnue/common/src/cursing/Event.py
diff -c gnue/common/src/cursing/Event.py:1.3 
gnue/common/src/cursing/Event.py:1.4
*** gnue/common/src/cursing/Event.py:1.3        Tue Nov  5 14:07:51 2002
--- gnue/common/src/cursing/Event.py    Tue Nov  5 14:37:14 2002
***************
*** 32,63 ****
    """
      UserInteraction-Event (Mouseclick, Keypress)
    """
!   __init__(self):
      self._type = none
      self._keycode = -1
      self._x = -1
      self._y = -1
  
!   getKeycode(self):
      """
        return the code of the pressed key
      """
      return self._keycode
  
!   isMouseEvent(self):
      """
        return wether this event is a mouse event
      """
      return self._type == mouse
  
!   getX(self):
      """
        return the x-position of a mouse-event
        -1 if the event is not mouse-related
      """
      return self._x
  
!   getY(self):
      """
        return the y-position of a mouse-event
        -1 if the event is not mouse-related
--- 32,63 ----
    """
      UserInteraction-Event (Mouseclick, Keypress)
    """
!   def __init__(self):
      self._type = none
      self._keycode = -1
      self._x = -1
      self._y = -1
  
!   def getKeycode(self):
      """
        return the code of the pressed key
      """
      return self._keycode
  
!   def isMouseEvent(self):
      """
        return wether this event is a mouse event
      """
      return self._type == mouse
  
!   def getX(self):
      """
        return the x-position of a mouse-event
        -1 if the event is not mouse-related
      """
      return self._x
  
!   def getY(self):
      """
        return the y-position of a mouse-event
        -1 if the event is not mouse-related




reply via email to

[Prev in Thread] Current Thread [Next in Thread]