Pychecker cleanup

svn: r1430
This commit is contained in:
Don Allingham 2003-04-09 03:29:08 +00:00
parent 2958cb7436
commit f4b8546438
6 changed files with 6 additions and 11 deletions

View File

@ -44,8 +44,6 @@ import gtk.glade
#
#-------------------------------------------------------------------------
import const
import GrampsCfg
import AutoComp
import Utils
from intl import gettext as _
@ -76,7 +74,7 @@ class FindBase:
self.forward_button = self.glade.get_widget('forward')
self.back_button = self.glade.get_widget('back')
Utils.set_titles(self.top, self.glade.get_widget('title'), name)
self.list = None
self.index = 0
def get_value(self,id):

View File

@ -40,6 +40,7 @@ import gconf
import gtk
import gtk.glade
import gnome
import gnome.ui
#-------------------------------------------------------------------------
#

View File

@ -77,6 +77,7 @@ class ImageSelect:
self.parent = parent
self.canvas_list = {}
self.p_map = {}
self.canvas = None
def add_thumbnail(self, photo):
"should be overrridden"

View File

@ -37,6 +37,7 @@ import string
#
#-------------------------------------------------------------------------
import gtk
import gnome
import gnome.ui
#-------------------------------------------------------------------------
@ -52,7 +53,6 @@ import TextDoc
import StyleEditor
import GrampsCfg
import PaperMenu
import Errors
from intl import gettext as _
from QuestionDialog import ErrorDialog
@ -534,7 +534,6 @@ class ReportDialog:
label = gtk.Label("%s:" % _("Styles"))
label.set_alignment(0.0,0.5)
hbox = gtk.HBox()
self.style_menu = gtk.OptionMenu()
self.style_button = gtk.Button("%s..." % _("Style Editor"))
self.style_button.connect('clicked',self.on_style_edit_clicked)
@ -832,7 +831,6 @@ class ReportDialog:
row += 1
def setup_other_frames(self):
pad = ReportDialog.border_pad
for key in self.frame_names:
list = self.frames[key]
table = gtk.Table(3,len(list))

View File

@ -20,7 +20,6 @@
import gzip
import cStringIO
import string
import os
_BLKSIZE=512
nul = '\0'

View File

@ -26,7 +26,6 @@
#-------------------------------------------------------------------------
import string
import os
import sys
#-------------------------------------------------------------------------
#
@ -855,10 +854,9 @@ class Gramps:
if not path:
return 1
filename = os.path.normpath(os.path.abspath(filename))
Utils.clear_timer()
filename = "%s/autosave.gramps" % (self.db.getSavePath())
filename = "%s/autosave.gramps" % (path)
self.status_text(_("autosaving..."));
try: