2008-01-18 Raphael Ackermann <raphael.ackermann@gmail.com>
* src/FilterEditor/_ShowResults.py * src/GrampsCfg.py * src/ReportBase/_StyleComboBox.py * src/ReportBase/_PaperMenu.py * src/ReportBase/_BookFormatComboBox.py * src/ReportBase/_DrawFormatComboBox.py * src/ReportBase/_GraphvizReportDialog.py * src/ReportBase/_TextFormatComboBox.py * src/DisplayTabs/_GalleryTab.py * src/ColumnOrder.py * src/plugins/WebCal.py * src/plugins/RemoveUnused.py * src/plugins/Verify.py * src/plugins/PatchNames.py * src/ObjectSelector/_FamilyFilterFrame.py * src/ObjectSelector/_PersonFilterFrame.py * src/GrampsWidgets.py * src/ExportOptions.py * src/DdTargets.py * src/AutoComp.py * src/UndoHistory.py * src/PluginUtils/_PluginWindows.py * src/DbLoader.py * src/Filters/_FilterMenu.py pylint fixes + init gtk.ListStore() with gobject.TYPE_BOOLEAN types instead of str, int, bool etc + Documentation fixes svn: r9905
This commit is contained in:
@ -37,12 +37,13 @@ import locale
|
||||
#
|
||||
#-------------------------------------------------------------------------
|
||||
import gtk
|
||||
import gobject
|
||||
|
||||
def fill_combo(combo, data_list):
|
||||
"""
|
||||
Fill a combo box with completion data
|
||||
"""
|
||||
store = gtk.ListStore(str)
|
||||
store = gtk.ListStore(gobject.TYPE_STRING)
|
||||
|
||||
for data in [ item for item in data_list if item ]:
|
||||
store.append(row=[data])
|
||||
@ -59,7 +60,7 @@ def fill_entry(entry, data_list):
|
||||
"""
|
||||
Fill a entry with completion data
|
||||
"""
|
||||
store = gtk.ListStore(str)
|
||||
store = gtk.ListStore(gobject.TYPE_STRING)
|
||||
|
||||
for data in [ item for item in data_list if item ]:
|
||||
store.append(row=[data])
|
||||
@ -128,7 +129,7 @@ class StandardCustomSelector:
|
||||
self.additional = additional
|
||||
|
||||
# make model
|
||||
self.store = gtk.ListStore(int, str)
|
||||
self.store = gtk.ListStore(gobject.TYPE_INT, gobject.TYPE_STRING)
|
||||
|
||||
# fill it up using mapping
|
||||
self.fill()
|
||||
|
Reference in New Issue
Block a user