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

@ -50,7 +50,7 @@ try:
except:
ICON = None
class SaveDialog:
class SaveDialog(object):
def __init__(self,msg1,msg2,task1,task2,parent=None):
self.xml = Glade(toplevel='savedialog')
@ -81,7 +81,7 @@ class SaveDialog:
Config.set(Config.DONT_ASK,self.dontask.get_active())
self.top.destroy()
class QuestionDialog:
class QuestionDialog(object):
def __init__(self,msg1,msg2,label,task,parent=None):
self.xml = Glade(toplevel='questiondialog')
@ -107,7 +107,7 @@ class QuestionDialog:
if response == gtk.RESPONSE_ACCEPT:
task()
class QuestionDialog2:
class QuestionDialog2(object):
def __init__(self,msg1,msg2,label_msg1,label_msg2,parent=None):
self.xml = Glade(toplevel='questiondialog')
@ -137,7 +137,7 @@ class QuestionDialog2:
self.top.destroy()
return (response == gtk.RESPONSE_ACCEPT)
class OptionDialog:
class OptionDialog(object):
def __init__(self,msg1,msg2,btnmsg1,task1,btnmsg2,task2,parent=None):
self.xml = Glade(toplevel='optiondialog')
@ -236,7 +236,7 @@ class OkDialog(gtk.MessageDialog):
self.run()
self.destroy()
class InfoDialog:
class InfoDialog(object):
"""
Dialog to show selectable info in a scrolled window
"""
@ -266,7 +266,7 @@ class InfoDialog:
def get_response(self):
return self.response
class MissingMediaDialog:
class MissingMediaDialog(object):
def __init__(self,msg1,msg2,task1,task2,task3,parent=None):
self.xml = Glade(toplevel='missmediadialog')
@ -320,7 +320,7 @@ class MissingMediaDialog:
self.top)
return True
class MessageHideDialog:
class MessageHideDialog(object):
def __init__(self, title, message, key, parent=None):
self.xml = Glade(toplevel='hidedialog')