예제 #1
0
 def defineCatalog():
     """whatever this does"""
     if not Tileset.catalogDefined:
         KGlobal.dirs().addResourceType("kmahjonggtileset",
             "data", QString.fromLatin1("kmahjongglib/tilesets"))
         KGlobal.locale().insertCatalog("libkmahjongglib")
         Tileset.catalogDefined = True
예제 #2
0
 def defineCatalog():
     """whatever this does"""
     if not Background.catalogDefined:
         KGlobal.dirs().addResourceType("kmahjonggbackground",
             "data", QString.fromLatin1("kmahjongglib/backgrounds"))
         KGlobal.locale().insertCatalog("libkmahjongglib")
         Background.catalogDefined = True
예제 #3
0
 def defineCatalog():
     """whatever this does"""
     if not Background.catalogDefined:
         KGlobal.dirs().addResourceType(
             "kmahjonggbackground", "data",
             QString.fromLatin1("kmahjongglib/backgrounds"))
         KGlobal.locale().insertCatalog("libkmahjongglib")
         Background.catalogDefined = True
예제 #4
0
파일: kajongg.py 프로젝트: KDE/kajongg
        EventData(receiver, event)
        return QObject.eventFilter(self, receiver, event)


from util import gitHead

ABOUT = About()
KCmdLineArgs.init(sys.argv, ABOUT.about)
KCmdLineArgs.addCmdLineOptions(defineOptions())
if usingQt4:
    KApplication.setGraphicsSystem("raster")
APP = KApplication()
parseOptions()

if Debug.neutral:
    KGlobal.locale().setLanguage("en_US")

if Debug.events:
    EVHANDLER = EvHandler()
    APP.installEventFilter(EVHANDLER)

from config import SetupPreferences

SetupPreferences()

if Options.csv:
    if gitHead() == "current":
        Internal.logger.debug("You cannot write to %s with changes uncommitted to git", Options.csv)
        sys.exit(2)
from mainwindow import MainWindow