Remove every old-style class.
This commit is contained in:
parent
27b3592e16
commit
88074cd284
3 changed files with 56 additions and 56 deletions
|
|
@ -27,7 +27,7 @@ from logging import debug, info, error
|
|||
suits_order = ['pique', 'coeur', 'trefle', 'carreau', 'atout'] #I have switched the usual order 'trefle' and 'carreau' because card are more easy to see if suit colour change (black, red, black, red)
|
||||
values_order = map(str,range(1,11))+["valet","cavalier","dame","roi"]
|
||||
|
||||
class TarotCard():
|
||||
class TarotCard(object):
|
||||
"""This class is used to represent a car logically"""
|
||||
#TODO: move this in a library in tools, and share this with frontends (e.g. card_game in wix use the same class)
|
||||
|
||||
|
|
|
|||
|
|
@ -31,7 +31,7 @@ class SkipOtherTriggers(Exception):
|
|||
followind triggers list """
|
||||
pass
|
||||
|
||||
class TriggerManager:
|
||||
class TriggerManager(object):
|
||||
"""This class manage triggers: code which interact to change de behaviour of SàT"""
|
||||
|
||||
def __init__(self):
|
||||
|
|
|
|||
|
|
@ -107,7 +107,7 @@ def paramsXml2xmlUI(xml):
|
|||
|
||||
|
||||
|
||||
class XMLUI:
|
||||
class XMLUI(object):
|
||||
"""This class is used to create a user interface (form/window/parameters/etc) using SàT XML"""
|
||||
|
||||
def __init__(self, panel_type, layout="vertical", title=None):
|
||||
|
|
|
|||
Loading…
Reference in a new issue