Pychecker cleanup

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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