Remove every old-style class.

This commit is contained in:
Emmanuel Gil Peyrot 2013-01-18 17:55:35 +01:00
commit 88074cd284
8 changed files with 56 additions and 56 deletions

View file

@ -70,7 +70,7 @@ except ImportError, e:
class JP():
class JP(object):
def __init__(self):
try:
self.bridge=DBusBridgeFrontend()

View file

@ -21,7 +21,7 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
import dbus
class Notify:
class Notify(object):
"""Used to send notification and detect if we have focus"""
def __init__(self):

View file

@ -24,7 +24,7 @@ from sat.tools.jid import JID
class QuickCardGame():
class QuickCardGame(object):
def __init__(self, parent, referee, players, player_nick):
self._autoplay = None #XXX: use 0 to activate fake play, None else

View file

@ -24,7 +24,7 @@ from sat.tools.jid import JID
from sat_frontends.quick_frontend.quick_utils import unescapePrivate
class QuickChat():
class QuickChat(object):
def __init__(self, target, host, type='one2one'):
self.target = target

View file

@ -22,7 +22,7 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
from logging import debug
class QuickContactList():
class QuickContactList(object):
"""This class manage the visual representation of contacts"""
def __init__(self):

View file

@ -24,7 +24,7 @@ from sat.tools.jid import JID
import pdb
class QuickContactManagement():
class QuickContactManagement(object):
"""This helper class manage the contacts and ease the use of nicknames and shortcuts"""
### FIXME: is SàT a better place for all this stuff ??? ###

View file

@ -22,7 +22,7 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
class QuickGatewaysManager():
class QuickGatewaysManager(object):
def __init__(self, host, gateways, title=_("Gateways manager"), server=None):

View file

@ -34,7 +34,7 @@ CARD_HEIGHT = 136
WIDTH = 800
HEIGHT = 600
class GraphicElement():
class GraphicElement(object):
"""This class is used to represent a card, graphically and logically"""
def __init__(self, file, x=0, y=0, zindex=10, transparent=True):