mirror of
https://github.com/shlomif/PySolFC.git
synced 2025-04-05 00:02:29 -04:00
Fix the indentation.
See http://perl-begin.org/tutorials/bad-elements/#no-indentation .
This commit is contained in:
parent
490f8f2f25
commit
91e5cdafa3
8 changed files with 34 additions and 34 deletions
|
@ -109,7 +109,7 @@ class Images:
|
||||||
imagedir = self.d.findDir(cs_type, d)
|
imagedir = self.d.findDir(cs_type, d)
|
||||||
except Exception:
|
except Exception:
|
||||||
pass
|
pass
|
||||||
if (not USE_PIL and TOOLKIT is not 'kivy') or imagedir is None:
|
if (not USE_PIL and TOOLKIT != 'kivy') or imagedir is None:
|
||||||
# load image
|
# load image
|
||||||
img = self.__loadCard(filename+self.cs.ext, check_w, check_h)
|
img = self.__loadCard(filename+self.cs.ext, check_w, check_h)
|
||||||
if USE_PIL and img is not None:
|
if USE_PIL and img is not None:
|
||||||
|
@ -257,7 +257,7 @@ class Images:
|
||||||
return self._bottom[0]
|
return self._bottom[0]
|
||||||
|
|
||||||
def getBlankBottom(self):
|
def getBlankBottom(self):
|
||||||
if TOOLKIT is 'kivy':
|
if TOOLKIT == 'kivy':
|
||||||
return self._bottom[0]
|
return self._bottom[0]
|
||||||
return self._blank_bottom
|
return self._blank_bottom
|
||||||
|
|
||||||
|
|
|
@ -1688,7 +1688,7 @@ class LMainWindow(BoxLayout, LTkBase):
|
||||||
t = self.workStack.items[i]
|
t = self.workStack.items[i]
|
||||||
# print("stackkey: %s" % str(t[0]))
|
# print("stackkey: %s" % str(t[0]))
|
||||||
# print("stackitem: %s" % str(t[1]))
|
# print("stackitem: %s" % str(t[1]))
|
||||||
if t[0] is 'playground':
|
if t[0] == 'playground':
|
||||||
pass
|
pass
|
||||||
else:
|
else:
|
||||||
if isinstance(t[1], LTopLevel):
|
if isinstance(t[1], LTopLevel):
|
||||||
|
|
|
@ -347,9 +347,9 @@ def markImage(image):
|
||||||
def _createImageMask(texture, color):
|
def _createImageMask(texture, color):
|
||||||
|
|
||||||
col = 0
|
col = 0
|
||||||
if (color is 'black'):
|
if (color == 'black'):
|
||||||
col = 0
|
col = 0
|
||||||
if (color is 'white'):
|
if (color == 'white'):
|
||||||
col = 255
|
col = 255
|
||||||
|
|
||||||
g = texture.pixels
|
g = texture.pixels
|
||||||
|
|
|
@ -1476,7 +1476,7 @@ class Stack:
|
||||||
if img is None:
|
if img is None:
|
||||||
return
|
return
|
||||||
# self.canvas.update_idletasks()
|
# self.canvas.update_idletasks()
|
||||||
if TOOLKIT is 'kivy':
|
if TOOLKIT == 'kivy':
|
||||||
self.game.top.waitAnimation()
|
self.game.top.waitAnimation()
|
||||||
item = MfxCanvasImage(self.canvas, card.x, card.y,
|
item = MfxCanvasImage(self.canvas, card.x, card.y,
|
||||||
image=img, anchor=ANCHOR_NW, group=self.group)
|
image=img, anchor=ANCHOR_NW, group=self.group)
|
||||||
|
@ -1657,7 +1657,7 @@ class DealRow_StackMethods:
|
||||||
self.game.flipMove(self)
|
self.game.flipMove(self)
|
||||||
self.game.moveMove(1, self, r, frames=frames)
|
self.game.moveMove(1, self, r, frames=frames)
|
||||||
self.game.leaveState(old_state)
|
self.game.leaveState(old_state)
|
||||||
if TOOLKIT is 'kivy':
|
if TOOLKIT == 'kivy':
|
||||||
self.game.top.waitAnimation()
|
self.game.top.waitAnimation()
|
||||||
return len(stacks)
|
return len(stacks)
|
||||||
|
|
||||||
|
@ -1689,7 +1689,7 @@ class DealRow_StackMethods:
|
||||||
self.game.moveMove(1, self, r, frames=frames)
|
self.game.moveMove(1, self, r, frames=frames)
|
||||||
break
|
break
|
||||||
self.game.leaveState(old_state)
|
self.game.leaveState(old_state)
|
||||||
if TOOLKIT is 'kivy':
|
if TOOLKIT == 'kivy':
|
||||||
self.game.top.waitAnimation()
|
self.game.top.waitAnimation()
|
||||||
return n
|
return n
|
||||||
|
|
||||||
|
@ -2907,7 +2907,7 @@ class WasteTalonStack(TalonStack):
|
||||||
else:
|
else:
|
||||||
self.game.moveMove(1, self, waste, frames=4, shadow=0)
|
self.game.moveMove(1, self, waste, frames=4, shadow=0)
|
||||||
self.fillStack()
|
self.fillStack()
|
||||||
if TOOLKIT is 'kivy':
|
if TOOLKIT == 'kivy':
|
||||||
self.game.top.waitAnimation()
|
self.game.top.waitAnimation()
|
||||||
elif waste.cards and self.round != self.max_rounds:
|
elif waste.cards and self.round != self.max_rounds:
|
||||||
if sound:
|
if sound:
|
||||||
|
|
Loading…
Add table
Reference in a new issue