1
0
Fork 0
mirror of https://github.com/shlomif/PySolFC.git synced 2025-04-05 00:02:29 -04:00

import stack.

This commit is contained in:
Shlomi Fish 2012-11-25 18:16:06 +02:00
parent 9252b4771b
commit 88634d2a8b
6 changed files with 7 additions and 5 deletions

View file

@ -23,7 +23,7 @@
from pysollib.gamedb import registerGame, GameInfo, GI
from pysollib.util import *
from stack import *
from pysollib.stack import *
from game import Game
from layout import Layout
from hint import AbstractHint, DefaultHint, CautiousDefaultHint, Yukon_Hint

View file

@ -254,7 +254,7 @@ class Game:
'%s: %s %s' % (class_name, ncards, self.gameinfo.ncards),
2)
if self.s.rows:
from stack import AC_RowStack, UD_AC_RowStack, \
from pysollib.stack import AC_RowStack, UD_AC_RowStack, \
SS_RowStack, UD_SS_RowStack, \
RK_RowStack, UD_RK_RowStack, \
Spider_AC_RowStack, Spider_SS_RowStack
@ -3304,7 +3304,7 @@ in the current implementation.''') % version)
def showStackDesc(self):
from pysoltk import StackDesc
from stack import InitialDealTalonStack
from pysollib.stack import InitialDealTalonStack
sd_list = []
for s in self.allstacks:
sd = (s.__class__.__name__, s.cap.base_rank, s.cap.dir)

View file

@ -95,6 +95,7 @@ __all__ = ['cardsFaceUp',
# imports
import types
from pysollib.mygettext import _, n_
# PySol imports
from pysollib.mfxutil import Struct, kwdefault, SubclassResponsibility
from pysollib.mfxutil import Image, ImageTk, USE_PIL

View file

@ -41,6 +41,7 @@ __all__ = ['EVENT_HANDLED',
# imports
import Tkinter
from pysollib.mygettext import _, n_
# ************************************************************************
# * constants

View file

@ -25,7 +25,7 @@ import os
from pysollib.gamedb import GI, loadGame
from pysollib.util import *
from stack import *
from pysollib.stack import *
from layout import Layout
from wizardpresets import presets

View file

@ -1,6 +1,6 @@
#!/usr/bin/env python
import os.path
for module_name in ['pysollib.acard', 'pysollib.mfxutil', 'pysollib.move', 'pysollib.resource', 'pysollib.settings', 'pysollib.mygettext', 'pysollib.wizardpresets', 'pysollib.util', 'pysollib.gamedb', ]:
for module_name in ['pysollib.acard', 'pysollib.mfxutil', 'pysollib.move', 'pysollib.resource', 'pysollib.settings', 'pysollib.stack', 'pysollib.mygettext', 'pysollib.wizardpresets', 'pysollib.util', 'pysollib.gamedb', ]:
open(os.path.join(".", "tests", "individually-importing", "import_" + module_name + ".py"), 'w').write('''#!/usr/bin/env python
import sys
sys.path.append("./tests/lib")