annotate frontends/src/wix/wix @ 587:952322b1d490

Remove trailing whitespaces.
author Emmanuel Gil Peyrot <linkmauve@linkmauve.fr>
date Fri, 18 Jan 2013 17:55:34 +0100
parents ca13633d3b6b
children 84a6e83157c2
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
572
ca13633d3b6b dates update
Goffi <goffi@goffi.org>
parents: 480
diff changeset
6 Copyright (C) 2009, 2010, 2011, 2012, 2013Jérôme Poisson (goffi@goffi.org)
0
goffi@necton2
parents:
diff changeset
7
goffi@necton2
parents:
diff changeset
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
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
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
goffi@necton2
parents:
diff changeset
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
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
227
533507bb4e32 distutils wix installation
Goffi <goffi@goffi.org>
parents: 223
diff changeset
24 from sat_frontends.bridge.DBus import DBusBridgeFrontend
0
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
587
952322b1d490 Remove trailing whitespaces.
Emmanuel Gil Peyrot <linkmauve@linkmauve.fr>
parents: 572
diff changeset
28 from sat_frontends.wix.main_window import MainWindow
0
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()