Mercurial > libervia-backend
comparison frontends/src/wix/wix @ 223:86d249b6d9b7
Files reorganisation
author | Goffi <goffi@goffi.org> |
---|---|
date | Wed, 29 Dec 2010 01:06:29 +0100 |
parents | frontends/wix/wix@a5b5fb5fc9fd |
children | 533507bb4e32 |
comparison
equal
deleted
inserted
replaced
222:3198bfd66daa | 223:86d249b6d9b7 |
---|---|
1 #!/usr/bin/python | |
2 # -*- coding: utf-8 -*- | |
3 | |
4 """ | |
5 wix: a SAT frontend | |
6 Copyright (C) 2009, 2010 Jérôme Poisson (goffi@goffi.org) | |
7 | |
8 This program is free software: you can redistribute it and/or modify | |
9 it under the terms of the GNU General Public License as published by | |
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 | |
16 GNU General Public License for more details. | |
17 | |
18 You should have received a copy of the GNU General Public License | |
19 along with this program. If not, see <http://www.gnu.org/licenses/>. | |
20 """ | |
21 | |
22 | |
23 import wx | |
24 from sat_bridge_frontend.DBus import DBusBridgeFrontend | |
25 import pdb | |
26 import logging | |
27 from logging import debug, info, error | |
28 from main_window import MainWindow | |
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() |