Bug 3011: change old-style classes to new-style classes
svn: r12559
This commit is contained in:
@@ -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.
|
||||
"""
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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 = {}
|
||||
|
||||
@@ -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 = []
|
||||
|
||||
Reference in New Issue
Block a user