コード例 #1
0
ファイル: tileset.py プロジェクト: ospalh/kajongg-fork
 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
ファイル: background.py プロジェクト: jsj2008/kdegames
 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