Remove every old-style class.
This commit is contained in:
parent
27b3592e16
commit
88074cd284
8 changed files with 56 additions and 56 deletions
|
|
@ -70,7 +70,7 @@ except ImportError, e:
|
|||
|
||||
|
||||
|
||||
class JP():
|
||||
class JP(object):
|
||||
def __init__(self):
|
||||
try:
|
||||
self.bridge=DBusBridgeFrontend()
|
||||
|
|
|
|||
|
|
@ -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):
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -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):
|
||||
|
|
|
|||
|
|
@ -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 ??? ###
|
||||
|
||||
|
|
|
|||
|
|
@ -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):
|
||||
|
|
|
|||
|
|
@ -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):
|
||||
|
|
|
|||
Loading…
Reference in a new issue