Moved gtk imports out of global scope for cli use

svn: r13824
This commit is contained in:
Doug Blank 2009-12-16 12:43:21 +00:00
parent 2a047ab65e
commit 8f2f2f200f

View File

@ -31,8 +31,6 @@ import gen.lib
import Errors
import config
import DateHandler
from gui.editors import (EditPerson, EditEvent, EditFamily, EditSource,
EditPlace, EditRepository)
class SimpleTable(object):
"""
@ -86,6 +84,8 @@ class SimpleTable(object):
"""
Handle events on tables. obj is a treeview
"""
from gui.editors import (EditPerson, EditEvent, EditFamily, EditSource,
EditPlace, EditRepository)
selection = obj.get_selection()
store, node = selection.get_selected()
if not node: