本文整理匯總了Python中mcedit2.util.settings.Settings.lastChosenSavesFolder方法的典型用法代碼示例。如果您正苦於以下問題:Python Settings.lastChosenSavesFolder方法的具體用法?Python Settings.lastChosenSavesFolder怎麽用?Python Settings.lastChosenSavesFolder使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在類mcedit2.util.settings.Settings
的用法示例。
在下文中一共展示了Settings.lastChosenSavesFolder方法的1個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的Python代碼示例。
示例1: Settings
# 需要導入模塊: from mcedit2.util.settings import Settings [as 別名]
# 或者: from mcedit2.util.settings.Settings import lastChosenSavesFolder [as 別名]
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
# if hasattr(worldAdapter, 'worldFolder'):