Mercurial > libervia-backend
comparison frontends/wix/wix.py @ 0:c4bc297b82f0
sat:
- first public release, initial commit
author | goffi@necton2 |
---|---|
date | Sat, 29 Aug 2009 13:34:59 +0200 |
parents | |
children |
comparison
equal
deleted
inserted
replaced
-1:000000000000 | 0:c4bc297b82f0 |
---|---|
1 #!/usr/bin/python | |
2 # -*- coding: utf-8 -*- | |
3 | |
4 """ | |
5 wix: a SAT frontend | |
6 Copyright (C) 2009 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() |