Bug 3011: change old-style classes to new-style classes
svn: r12559
This commit is contained in:
@@ -25,7 +25,7 @@ import BaseDoc
|
||||
#
|
||||
#
|
||||
#------------------------------------------------------------------------
|
||||
class SpreadSheetDoc:
|
||||
class SpreadSheetDoc(object):
|
||||
def __init__(self,type, orientation=BaseDoc.PAPER_PORTRAIT):
|
||||
self.orientation = orientation
|
||||
if orientation == BaseDoc.PAPER_PORTRAIT:
|
||||
|
@@ -23,7 +23,7 @@
|
||||
#
|
||||
#
|
||||
#------------------------------------------------------------------------
|
||||
class TabbedDoc:
|
||||
class TabbedDoc(object):
|
||||
def __init__(self, columns):
|
||||
self.columns = columns
|
||||
self.name = ""
|
||||
|
@@ -81,7 +81,7 @@ class DisplayBuf(ManagedWindow.ManagedWindow):
|
||||
def get_title(self):
|
||||
return self.title
|
||||
|
||||
class DocumentManager:
|
||||
class DocumentManager(object):
|
||||
def __init__(self, title, document, text_view):
|
||||
self.title = title
|
||||
self.document = document
|
||||
|
Reference in New Issue
Block a user