1
# -*- coding: utf-8 -*-
3
# Copyright 2012 Canonical Ltd.
5
# This program is free software: you can redistribute it and/or modify it
6
# under the terms of the GNU General Public License version 3, as published
7
# by the Free Software Foundation.
9
# This program is distributed in the hope that it will be useful, but
10
# WITHOUT ANY WARRANTY; without even the implied warranties of
11
# MERCHANTABILITY, SATISFACTORY QUALITY, or FITNESS FOR A PARTICULAR
12
# PURPOSE. See the GNU General Public License for more details.
14
# You should have received a copy of the GNU General Public License along
15
# with this program. If not, see <http://www.gnu.org/licenses/>.
17
"""Main method to be used on windows."""
19
from PyQt4 import QtGui
23
"""Apply style sheet and fonts."""
24
# Apply font to the entire application
25
QtGui.QFontDatabase.addApplicationFont(':/Ubuntu-R.ttf')
26
QtGui.QFontDatabase.addApplicationFont(':/Ubuntu-B.ttf')
29
# Module 'reactor' has no 'run'/'stop' member, pylint: disable=E1101
33
"""Start the mainloop."""
34
from twisted.internet import reactor
39
"""Stop the mainloop."""
40
from twisted.internet import reactor
44
# pylint: enable=E1101
46
PLATFORM_QSS = ":/windows.qss"