Prepare for release, mention why there is still no Windows version.
[wammu.git] / Wammu / Events.py
blob68f8131b56fe92d87dc4dccd9995ededd7f043ed
1 # -*- coding: UTF-8 -*-
2 # vim: expandtab sw=4 ts=4 sts=4:
3 '''
4 Wammu - Phone manager
5 wx events used all around this program.
6 '''
7 __author__ = 'Michal Čihař'
8 __email__ = 'michal@cihar.com'
9 __license__ = '''
10 Copyright © 2003 - 2008 Michal Čihař
12 This program is free software; you can redistribute it and/or modify it
13 under the terms of the GNU General Public License version 2 as published by
14 the Free Software Foundation.
16 This program is distributed in the hope that it will be useful, but WITHOUT
17 ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
18 FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for
19 more details.
21 You should have received a copy of the GNU General Public License along with
22 this program; if not, write to the Free Software Foundation, Inc.,
23 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
24 '''
26 try:
27 from wx.lib.newevent import NewEvent
28 except:
29 print 'Please consider updating to newer wxPython, using local copy of newevent'
30 from Wammu.wxcomp.newevent import NewEvent
32 # create some events:
33 ShowMessageEvent, EVT_SHOW_MESSAGE = NewEvent()
34 ProgressEvent, EVT_PROGRESS = NewEvent()
35 LinkEvent, EVT_LINK = NewEvent()
36 DataEvent, EVT_DATA = NewEvent()
37 ShowEvent, EVT_SHOW = NewEvent()
38 EditEvent, EVT_EDIT = NewEvent()
39 SendEvent, EVT_SEND = NewEvent()
40 CallEvent, EVT_CALL = NewEvent()
41 MessageEvent, EVT_MESSAGE = NewEvent()
42 ReplyEvent, EVT_REPLY = NewEvent()
43 DuplicateEvent, EVT_DUPLICATE = NewEvent()
44 DeleteEvent, EVT_DELETE = NewEvent()
45 LogEvent, EVT_LOG = NewEvent()
46 TextEvent, EVT_TEXT = NewEvent()
47 DoneEvent, EVT_DONE = NewEvent()
48 BackupEvent, EVT_BACKUP = NewEvent()
49 ExceptionEvent, EVT_EXCEPTION = NewEvent()