Bug 3011: change old-style classes to new-style classes

svn: r12559
This commit is contained in:
Gerald Britton
2009-05-21 17:19:50 +00:00
parent 316b997e6d
commit 021b754939
128 changed files with 229 additions and 235 deletions

View File

@@ -601,7 +601,7 @@ class Gramplet(object):
def save_options(self):
pass
class GuiGramplet:
class GuiGramplet(object):
"""
Class that handles the plugin interfaces for the GrampletView.
"""

View File

@@ -152,7 +152,7 @@ class GuideMap(gtk.DrawingArea):
return (px,py)
# Map tile files used by the ZoomMap
class MapTile:
class MapTile(object):
def __init__( self, filename, x, y, w, h, pw, ph):
self.filename = filename
self.full_path = os.path.join(const.IMAGE_DIR,filename)
@@ -226,7 +226,7 @@ class MapTile:
self.scale = None
self.scaled_pixbuf = None
class WMSMapTile:
class WMSMapTile(object):
def __init__(self,capabilities,change_cb=None):
self.change_cb = change_cb
self.scaled_pixbuf = None

View File

@@ -357,7 +357,7 @@ class PersonBoxWidget( gtk.DrawingArea, _PersonWidget_base):
else:
self.window.draw_rectangle(self.border_gc, False, 0, 0, alloc.width-4, alloc.height-4)
class FormattingHelper:
class FormattingHelper(object):
def __init__(self,dbstate):
self.dbstate = dbstate
self._text_cache = {}

View File

@@ -94,7 +94,7 @@ _KP_ENTER = gtk.gdk.keyval_from_name("KP_Enter")
_LEFT_BUTTON = 1
_RIGHT_BUTTON = 3
class AttachList:
class AttachList(object):
def __init__(self):
self.list = []