annotate 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
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
0
goffi@necton2
parents:
diff changeset
1 #!/usr/bin/python
goffi@necton2
parents:
diff changeset
2 # -*- coding: utf-8 -*-
goffi@necton2
parents:
diff changeset
3
goffi@necton2
parents:
diff changeset
4 """
goffi@necton2
parents:
diff changeset
5 wix: a SAT frontend
goffi@necton2
parents:
diff changeset
6 Copyright (C) 2009 Jérôme Poisson (goffi@goffi.org)
goffi@necton2
parents:
diff changeset
7
goffi@necton2
parents:
diff changeset
8 This program is free software: you can redistribute it and/or modify
goffi@necton2
parents:
diff changeset
9 it under the terms of the GNU General Public License as published by
goffi@necton2
parents:
diff changeset
10 the Free Software Foundation, either version 3 of the License, or
goffi@necton2
parents:
diff changeset
11 (at your option) any later version.
goffi@necton2
parents:
diff changeset
12
goffi@necton2
parents:
diff changeset
13 This program is distributed in the hope that it will be useful,
goffi@necton2
parents:
diff changeset
14 but WITHOUT ANY WARRANTY; without even the implied warranty of
goffi@necton2
parents:
diff changeset
15 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
goffi@necton2
parents:
diff changeset
16 GNU General Public License for more details.
goffi@necton2
parents:
diff changeset
17
goffi@necton2
parents:
diff changeset
18 You should have received a copy of the GNU General Public License
goffi@necton2
parents:
diff changeset
19 along with this program. If not, see <http://www.gnu.org/licenses/>.
goffi@necton2
parents:
diff changeset
20 """
goffi@necton2
parents:
diff changeset
21
goffi@necton2
parents:
diff changeset
22
goffi@necton2
parents:
diff changeset
23 import wx
goffi@necton2
parents:
diff changeset
24 from sat_bridge_frontend.DBus import DBusBridgeFrontend
goffi@necton2
parents:
diff changeset
25 import pdb
goffi@necton2
parents:
diff changeset
26 import logging
goffi@necton2
parents:
diff changeset
27 from logging import debug, info, error
goffi@necton2
parents:
diff changeset
28 from main_window import MainWindow
goffi@necton2
parents:
diff changeset
29
goffi@necton2
parents:
diff changeset
30 ### logging configuration FIXME: put this elsewhere ###
goffi@necton2
parents:
diff changeset
31 logging.basicConfig(level=logging.DEBUG,
goffi@necton2
parents:
diff changeset
32 format='%(message)s')
goffi@necton2
parents:
diff changeset
33 ###
goffi@necton2
parents:
diff changeset
34
goffi@necton2
parents:
diff changeset
35
goffi@necton2
parents:
diff changeset
36 class SATApp(wx.App):
goffi@necton2
parents:
diff changeset
37 def __init__(self, redirect=False, filename=None, useBestVisual=False, clearSigInt=True):
goffi@necton2
parents:
diff changeset
38 super(SATApp,self).__init__(redirect, filename, useBestVisual, clearSigInt)
goffi@necton2
parents:
diff changeset
39
goffi@necton2
parents:
diff changeset
40 def OnInit(self):
goffi@necton2
parents:
diff changeset
41 self.main = MainWindow()
goffi@necton2
parents:
diff changeset
42 self.main.Show(True)
goffi@necton2
parents:
diff changeset
43 self.SetTopWindow(self.main)
goffi@necton2
parents:
diff changeset
44 return True
goffi@necton2
parents:
diff changeset
45
goffi@necton2
parents:
diff changeset
46
goffi@necton2
parents:
diff changeset
47 sat = SATApp()
goffi@necton2
parents:
diff changeset
48 sat.MainLoop()