Clean up from pychecker.

svn: r592
This commit is contained in:
Don Allingham
2001-11-28 04:17:52 +00:00
parent fe4fee885c
commit afbbb0947a
18 changed files with 149 additions and 186 deletions

View File

@@ -23,8 +23,6 @@
import RelLib
import const
import os
import re
import sort
import string
import utils
import Config
@@ -36,9 +34,8 @@ from TextDoc import *
from StyleEditor import *
import FindDoc
from gtk import *
from gnome.ui import *
from libglade import *
import gtk
import libglade
#------------------------------------------------------------------------
#
@@ -334,7 +331,6 @@ def report(database,person):
global active_person
global topDialog
global glade_file
global db
global style_sheet_list
@@ -344,9 +340,8 @@ def report(database,person):
active_person = person
db = database
base = os.path.dirname(__file__)
glade_file = base + os.sep + "indsum.glade"
topDialog = GladeXML(glade_file,"dialog1")
glade_file = "%s/indsum.glade" % os.path.dirname(__file__)
topDialog = libglade.GladeXML(glade_file,"dialog1")
topDialog.get_widget("fileentry1").set_default_path(Config.report_dir)
name = person.getPrimaryName().getRegularName()
@@ -407,9 +402,9 @@ def report(database,person):
def build_menu(object):
menu = topDialog.get_widget("style_menu")
myMenu = GtkMenu()
myMenu = gtk.GtkMenu()
for style in style_sheet_list.get_style_names():
menuitem = GtkMenuItem(style)
menuitem = gtk.GtkMenuItem(style)
menuitem.set_data("d",style_sheet_list.get_style_sheet(style))
menuitem.show()
myMenu.append(menuitem)