pep8 compliance: E251 no spaces around keyword / parameter equals

This commit is contained in:
David Sowder 2012-02-21 21:02:15 -06:00
parent b56275c23d
commit adda8adec0

View File

@ -38,7 +38,7 @@ class ChunkToolPanel(Panel):
extractButton.highlight_color = (255, 255, 255) extractButton.highlight_color = (255, 255, 255)
deselectButton = Button("Deselect", deselectButton = Button("Deselect",
tooltipText = None, tooltipText=None,
action=tool.editor.deselect, action=tool.editor.deselect,
) )
@ -216,7 +216,7 @@ class ChunkTool(EditorTool):
self.editor.level.extractChunksInBox(self.selectionBox(), folder) self.editor.level.extractChunksInBox(self.selectionBox(), folder)
@alertException @alertException
def destroyChunks(self, chunks = None): def destroyChunks(self, chunks=None):
if "No" == ask("Really delete these chunks? This cannot be undone.", ("Yes", "No")): if "No" == ask("Really delete these chunks? This cannot be undone.", ("Yes", "No")):
return return
if chunks is None: if chunks is None:
@ -412,7 +412,7 @@ def GeneratorPanel():
def clearCache(): def clearCache():
MCServerChunkGenerator.clearWorldCache() MCServerChunkGenerator.clearWorldCache()
simRow = CheckBoxLabel("Simulate world", ref=AttrRef(panel, "simulate"), tooltipText = "Simulate the world for a few seconds after generating it. Reduces the save file size by processing all of the TileTicks.") simRow = CheckBoxLabel("Simulate world", ref=AttrRef(panel, "simulate"), tooltipText="Simulate the world for a few seconds after generating it. Reduces the save file size by processing all of the TileTicks.")
simRow = Row((simRow, advancedButton), anchor="lrh") simRow = Row((simRow, advancedButton), anchor="lrh")
#deleteCacheRow = Row((Label("Delete Temporary World File Cache?"), Button("Delete Cache!", action=clearCache, tooltipText="Click me if you think your chunks are stale."))) #deleteCacheRow = Row((Label("Delete Temporary World File Cache?"), Button("Delete Cache!", action=clearCache, tooltipText="Click me if you think your chunks are stale.")))