Project

Profile

Help

How to connect?
Download (502 Bytes) Statistics View on GitHub Reload from mirrored respository
| Branch: | Tag: | Revision:

github / src / ui / event.py @ e1d2d0dc

1
"""This file contains the specifial events for the CocoMUD client."""
2

    
3
import wx
4

    
5
# Constants
6
myEVT_FOCUS = wx.NewEventType()
7
EVT_FOCUS = wx.PyEventBinder(myEVT_FOCUS, 1)
8

    
9
class FocusEvent(wx.PyCommandEvent):
10

    
11
    """Change focus from the input field to the password field."""
12

    
13
    def __init__(self, etype, eid, value=None):
14
        wx.PyCommandEvent.__init__(self, etype, eid)
15
        self._value = value
16

    
17
    def GetValue(self):
18
        """Return the event's value."""
19
        return self._value
(2-2/3)