2011-08-28 18:01:32 +00:00
|
|
|
#!/usr/bin/env python2
|
|
|
|
|
|
|
|
# Copyright (C) 2011 Alex Yatskov
|
|
|
|
#
|
|
|
|
# This program is free software: you can redistribute it and/or modify
|
|
|
|
# it under the terms of the GNU General Public License as published by
|
|
|
|
# the Free Software Foundation, either version 3 of the License, or
|
|
|
|
# (at your option) any later version.
|
|
|
|
#
|
|
|
|
# This program is distributed in the hope that it will be useful,
|
|
|
|
# but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
|
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
|
|
# GNU General Public License for more details.
|
|
|
|
#
|
|
|
|
# You should have received a copy of the GNU General Public License
|
|
|
|
# along with this program. If not, see <http://www.gnu.org/licenses/>.
|
|
|
|
|
|
|
|
|
|
|
|
import sys
|
|
|
|
from PyQt4 import QtGui
|
2011-11-05 16:52:44 +00:00
|
|
|
from yomichan.lang import japanese
|
|
|
|
from yomichan.core.reader import MainWindowReader
|
2011-08-28 18:01:32 +00:00
|
|
|
|
|
|
|
|
|
|
|
filename = sys.argv[1] if len(sys.argv) >= 2 else None
|
|
|
|
languages = {'Japanese': japanese.initLanguage()}
|
|
|
|
|
|
|
|
|
|
|
|
application = QtGui.QApplication(sys.argv)
|
|
|
|
window = MainWindowReader(languages=languages, filename=filename)
|
|
|
|
window.show()
|
|
|
|
application.exec_()
|