本文整理汇总了Python中Core.Universals.fillMySettings方法的典型用法代码示例。如果您正苦于以下问题:Python Universals.fillMySettings方法的具体用法?Python Universals.fillMySettings怎么用?Python Universals.fillMySettings使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Core.Universals
的用法示例。
在下文中一共展示了Universals.fillMySettings方法的2个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Python代码示例。
示例1: float
# 需要导入模块: from Core import Universals [as 别名]
# 或者: from Core.Universals import fillMySettings [as 别名]
if float(sys.version[:3]) < 3.0:
reload(sys)
sys.setdefaultencoding("utf-8")
except: pass
import Core
if Core.checkMandatoryModules():
from Core.MyObjects import *
import FileUtils as fu
fu.initStartupVariables()
from Core import Universals as uni
from Core import Settings
uni.fillMySettings(False, False)
isActivePyKDE4 = False
from Core import Dialogs
from Core import Execute
defaultLangCode = str(QLocale().name())
HamsiManagerApp = MApplication(sys.argv)
MDir.setSearchPaths("Images", MStringList(str(fu.joinPath(fu.themePath, "Images"))))
StyleFile = open(fu.joinPath(fu.themePath, "Style.qss"))
HamsiManagerApp.setStyleSheet(StyleFile.read())
if fu.isFile(fu.joinPath(fu.HamsiManagerDirectory, "Languages", "Qt_" + defaultLangCode + ".qm")):
languageFileQt = MTranslator()
languageFileQt.load(str(fu.joinPath(fu.HamsiManagerDirectory, "Languages", "Qt_" + defaultLangCode + ".qm")))
HamsiManagerApp.installTranslator(languageFileQt)
if fu.isFile(fu.joinPath(fu.HamsiManagerDirectory, "Languages", "HamsiManager_" + defaultLangCode + ".qm")):
languageFile = MTranslator()
示例2: Demir
# 需要导入模块: from Core import Universals [as 别名]
# 或者: from Core.Universals import fillMySettings [as 别名]
fu.initStartupVariables()
from Core import Universals as uni
uni.printForDevelopers("Before CommandLineOptions")
from Core import CommandLineOptions
uni.printForDevelopers("Before CommandLineOptions.checkCommandLineOptions")
if CommandLineOptions.checkCommandLineOptions():
from Core import ReportBug
uni.printForDevelopers("Before Settings")
from Core import Settings
uni.printForDevelopers("Before Settings.checkSettings")
Settings.checkSettings()
uni.printForDevelopers("Before uni.fillMySettings")
uni.fillMySettings()
if isActivePyKDE4:
uni.printForDevelopers("ActivePyKDE4")
appName = "HamsiManager"
programName = ki18n("Hamsi Manager")
version = uni.version
appLicense = MAboutData.License_GPL_V3
appCopyright = ki18n(str("Murat Demir ([email protected])"))
kde4LangCode = uni.MySettings["language"]
text = ki18n(str(""))
homePage = str("hamsiapps.com")
bugEmail = str("Murat Demir ([email protected])")
if fu.isFile(fu.joinPath(fu.HamsiManagerDirectory, "Languages", "About_" + kde4LangCode)):
aboutFileContent = fu.readFromFile(
fu.joinPath(fu.HamsiManagerDirectory, "Languages", "About_" + kde4LangCode), "utf-8")
else: