本文整理汇总了Python中mcedit2.util.settings.Settings.currentSavesFolder方法的典型用法代码示例。如果您正苦于以下问题:Python Settings.currentSavesFolder方法的具体用法?Python Settings.currentSavesFolder怎么用?Python Settings.currentSavesFolder使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类mcedit2.util.settings.Settings
的用法示例。
在下文中一共展示了Settings.currentSavesFolder方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Python代码示例。
示例1: Settings
# 需要导入模块: from mcedit2.util.settings import Settings [as 别名]
# 或者: from mcedit2.util.settings.Settings import currentSavesFolder [as 别名]
from mcedit2.widgets.layout import Column, Row, setWidgetError
from mcedit2.worldview.minimap import MinimapWorldView
from mceditlib.anvil.adapter import AnvilWorldAdapter
from mceditlib.geometry import Vector
from mceditlib.exceptions import LevelFormatError, PlayerNotFound
from mceditlib import worldeditor
import logging
from mceditlib.findadapter import isLevel
from mceditlib.worldeditor import WorldEditor
log = logging.getLogger(__name__)
WorldListSettings = Settings().getNamespace('world_list')
WorldListSettings.allSavesFolders = WorldListSettings.getOption('saves_folders', 'json', [])
WorldListSettings.currentSavesFolder = WorldListSettings.getOption('current_saves_folder', unicode, '')
WorldListSettings.lastChosenSavesFolder = WorldListSettings.getOption('last_chosen_saves_folder', unicode, '')
class WorldListItemWidget(QtGui.QWidget):
doubleClicked = QtCore.Signal()
def __init__(self, parent=None):
QtGui.QWidget.__init__(self, parent)
self.displayNameLabel = QtGui.QLabel("namenamename")
self.lastPlayedLabel = QtGui.QLabel("lastplayed")
self.versionInfoLabel = QtGui.QLabel("version")
#self.sizeLabel = QtGui.QLabel(self.tr("Calculating area..."))
# areaText = self.tr("%.02f million square meters") % (world.chunkCount * 0.25)
# diskSize = 0