Mercurial > libervia-backend
annotate frontends/src/wix/wix @ 515:29b5ef129488
plugin XEP-0045, plugin text commands: added '/title' command
author | Goffi <goffi@goffi.org> |
---|---|
date | Sat, 20 Oct 2012 18:02:14 +0200 |
parents | 2a072735e459 |
children | ca13633d3b6b |
rev | line source |
---|---|
0 | 1 #!/usr/bin/python |
2 # -*- coding: utf-8 -*- | |
3 | |
4 """ | |
5 wix: a SAT frontend | |
459 | 6 Copyright (C) 2009, 2010, 2011, 2012 Jérôme Poisson (goffi@goffi.org) |
0 | 7 |
8 This program is free software: you can redistribute it and/or modify | |
480
2a072735e459
Licence modification: the full project is now under AGPL v3+ instead of GPL v3+
Goffi <goffi@goffi.org>
parents:
459
diff
changeset
|
9 it under the terms of the GNU Affero General Public License as published by |
0 | 10 the Free Software Foundation, either version 3 of the License, or |
11 (at your option) any later version. | |
12 | |
13 This program is distributed in the hope that it will be useful, | |
14 but WITHOUT ANY WARRANTY; without even the implied warranty of | |
15 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | |
480
2a072735e459
Licence modification: the full project is now under AGPL v3+ instead of GPL v3+
Goffi <goffi@goffi.org>
parents:
459
diff
changeset
|
16 GNU Affero General Public License for more details. |
0 | 17 |
480
2a072735e459
Licence modification: the full project is now under AGPL v3+ instead of GPL v3+
Goffi <goffi@goffi.org>
parents:
459
diff
changeset
|
18 You should have received a copy of the GNU Affero General Public License |
0 | 19 along with this program. If not, see <http://www.gnu.org/licenses/>. |
20 """ | |
21 | |
22 | |
23 import wx | |
227 | 24 from sat_frontends.bridge.DBus import DBusBridgeFrontend |
0 | 25 import pdb |
26 import logging | |
27 from logging import debug, info, error | |
227 | 28 from sat_frontends.wix.main_window import MainWindow |
0 | 29 |
30 ### logging configuration FIXME: put this elsewhere ### | |
31 logging.basicConfig(level=logging.DEBUG, | |
32 format='%(message)s') | |
33 ### | |
34 | |
35 | |
36 class SATApp(wx.App): | |
37 def __init__(self, redirect=False, filename=None, useBestVisual=False, clearSigInt=True): | |
38 super(SATApp,self).__init__(redirect, filename, useBestVisual, clearSigInt) | |
39 | |
40 def OnInit(self): | |
41 self.main = MainWindow() | |
42 self.main.Show(True) | |
43 self.SetTopWindow(self.main) | |
44 return True | |
45 | |
46 | |
47 sat = SATApp() | |
48 sat.MainLoop() |