当前位置: 首页>>代码示例>>Python>>正文


Python ListView.__init__方法代码示例

本文整理汇总了Python中gramps.gui.views.listview.ListView.__init__方法的典型用法代码示例。如果您正苦于以下问题:Python ListView.__init__方法的具体用法?Python ListView.__init__怎么用?Python ListView.__init__使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在gramps.gui.views.listview.ListView的用法示例。


在下文中一共展示了ListView.__init__方法的12个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Python代码示例。

示例1: __init__

# 需要导入模块: from gramps.gui.views.listview import ListView [as 别名]
# 或者: from gramps.gui.views.listview.ListView import __init__ [as 别名]
    def __init__(self, pdata, dbstate, uistate, title, model, nav_group):

        signal_map = {
            'place-add'     : self.row_add,
            'place-update'  : self.row_update,
            'place-delete'  : self.row_delete,
            'place-rebuild' : self.object_build,
            }

        self.mapservice = config.get('interface.mapservice')
        self.mapservicedata = {}

        ListView.__init__(
            self, title, pdata, dbstate, uistate,
            model, signal_map,
            PlaceBookmarks, nav_group,
            multiple=True,
            filter_class=PlaceSidebarFilter)

        self.func_list.update({
            '<PRIMARY>J' : self.jump,
            '<PRIMARY>BackSpace' : self.key_delete,
            })
        self.maptoolbtn = None

        uistate.connect('placeformat-changed', self.build_tree)

        self.additional_uis.append(self.additional_ui())
开发者ID:prculley,项目名称:gramps,代码行数:30,代码来源:libplaceview.py

示例2: __init__

# 需要导入模块: from gramps.gui.views.listview import ListView [as 别名]
# 或者: from gramps.gui.views.listview.ListView import __init__ [as 别名]
    def __init__(self, pdata, dbstate, uistate, nav_group=0):

        signal_map = {
            'citation-add'     : self._citation_row_add,
            'citation-update'  : self._citation_row_update,
            'citation-delete'  : self._citation_row_delete,
            'citation-rebuild' : self._citation_object_build,
            'source-add'       : self._source_row_add,
            'source-update'    : self._source_row_update,
            'source-delete'    : self._source_row_delete,
            'source-rebuild'   : self._source_object_build,
            }

        ListView.__init__(
            self, _('Citation Tree View'), pdata, dbstate, uistate,
            CitationTreeModel, signal_map,
            CitationBookmarks, nav_group,
            multiple=True,
            filter_class=SourceSidebarFilter)

        self.func_list.update({
            '<PRIMARY>J' : self.jump,
            '<PRIMARY>BackSpace' : self.key_delete,
            })

        self.additional_uis.append(self.additional_ui())
开发者ID:tester0077,项目名称:gramps,代码行数:28,代码来源:citationtreeview.py

示例3: __init__

# 需要导入模块: from gramps.gui.views.listview import ListView [as 别名]
# 或者: from gramps.gui.views.listview.ListView import __init__ [as 别名]
    def __init__(self, pdata, dbstate, uistate, title, model, nav_group=0):
        """
        Create the Person View
        """
        signal_map = {
            'person-add'     : self.row_add,
            'person-update'  : self.row_update,
            'person-delete'  : self.row_delete,
            'person-rebuild' : self.object_build,
            'person-groupname-rebuild' : self.object_build,
            'no-database': self.no_database,
            'family-update'  : self.object_build,
            'family-add'     : self.object_build,
            'family-delete'  : self.object_build,
            }

        ListView.__init__(
            self, title, pdata, dbstate, uistate,
            model, signal_map,
            PersonBookmarks, nav_group,
            multiple=True,
            filter_class=PersonSidebarFilter)

        self.func_list.update({
            '<PRIMARY>J' : self.jump,
            '<PRIMARY>BackSpace' : self.key_delete,
            })

        uistate.connect('nameformat-changed', self.build_tree)

        self.additional_uis.append(self.additional_ui())
开发者ID:cz172638,项目名称:gramps,代码行数:33,代码来源:libpersonview.py

示例4: __init__

# 需要导入模块: from gramps.gui.views.listview import ListView [as 别名]
# 或者: from gramps.gui.views.listview.ListView import __init__ [as 别名]
    def __init__(self, pdata, dbstate, uistate, nav_group=0):

        signal_map = {
            'family-add'     : self.row_add,
            'family-update'  : self.row_update,
            'family-delete'  : self.row_delete,
            'family-rebuild' : self.object_build,
            }

        ListView.__init__(
            self, _('Families'), pdata, dbstate, uistate,
            FamilyModel,
            signal_map,
            FamilyBookmarks, nav_group,
            multiple=True,
            filter_class=FamilySidebarFilter)

        self.func_list.update({
            '<PRIMARY>J' : self.jump,
            '<PRIMARY>BackSpace' : self.key_delete,
            })

        uistate.connect('nameformat-changed', self.build_tree)

        self.additional_uis.append(self.additional_ui())
开发者ID:geogeek1911,项目名称:gramps,代码行数:27,代码来源:familyview.py

示例5: __init__

# 需要导入模块: from gramps.gui.views.listview import ListView [as 别名]
# 或者: from gramps.gui.views.listview.ListView import __init__ [as 别名]
    def __init__(self, pdata, dbstate, uistate, nav_group=0):
        """
        Create the Event View
        """
        signal_map = {
            'event-add'     : self.row_add,
            'event-update'  : self.row_update,
            'event-delete'  : self.row_delete,
            'event-rebuild' : self.object_build,
            'person-update' : self.person_update,
            'person-add'    : self.person_update,
            'person-delete' : self.object_build,  # TODO slow way to do this
            'family-update' : self.family_update,
            'family-add'    : self.family_update,
            'family-delete' : self.object_build,  # TODO slow way to do this
            'place-update'  : self.related_update,
            }

        ListView.__init__(
            self, _('Events'), pdata, dbstate, uistate,
            EventModel,
            signal_map,
            EventBookmarks, nav_group,
            multiple=True,
            filter_class=EventSidebarFilter)

        self.func_list.update({
            '<PRIMARY>J' : self.jump,
            '<PRIMARY>BackSpace' : self.key_delete,
            })

        uistate.connect('nameformat-changed', self.build_tree)
        uistate.connect('placeformat-changed', self.build_tree)

        self.additional_uis.append(self.additional_ui())
开发者ID:prculley,项目名称:gramps,代码行数:37,代码来源:eventview.py

示例6: __init__

# 需要导入模块: from gramps.gui.views.listview import ListView [as 别名]
# 或者: from gramps.gui.views.listview.ListView import __init__ [as 别名]
    def __init__(self, pdata, dbstate, uistate, title, model, nav_group=0):
        """
        Create the Person View
        """
        signal_map = {
            'person-add'     : self.row_add,
            'person-update'  : self.row_update,
            'person-delete'  : self.row_delete,
            'person-rebuild' : self.object_build,
            'person-groupname-rebuild' : self.object_build,
            'no-database': self.no_database,
            'family-update'  : self.related_update,
            'family-add'     : self.related_update,
            'event-update'   : self.related_update,
            'place-update'   : self.related_update,
            }

        ListView.__init__(
            self, title, pdata, dbstate, uistate,
            model, signal_map,
            PersonBookmarks, nav_group,
            multiple=True,
            filter_class=PersonSidebarFilter)

        uistate.connect('nameformat-changed', self.build_tree)
        uistate.connect('placeformat-changed', self.build_tree)

        self.additional_uis.append(self.additional_ui)
开发者ID:SNoiraud,项目名称:gramps,代码行数:30,代码来源:libpersonview.py

示例7: __init__

# 需要导入模块: from gramps.gui.views.listview import ListView [as 别名]
# 或者: from gramps.gui.views.listview.ListView import __init__ [as 别名]
    def __init__(self, pdata, dbstate, uistate, nav_group=0):

        signal_map = {
            'repository-add'     : self.row_add,
            'repository-update'  : self.row_update,
            'repository-delete'  : self.row_delete,
            'repository-rebuild' : self.object_build,
            }

        ListView.__init__(
            self, _('Repositories'), pdata, dbstate, uistate,
            RepositoryModel, signal_map,
            RepoBookmarks, nav_group,
            multiple=True,
            filter_class=RepoSidebarFilter)

        self.additional_uis.append(self.additional_ui)
开发者ID:SNoiraud,项目名称:gramps,代码行数:19,代码来源:repoview.py

示例8: __init__

# 需要导入模块: from gramps.gui.views.listview import ListView [as 别名]
# 或者: from gramps.gui.views.listview.ListView import __init__ [as 别名]
    def __init__(self, pdata, dbstate, uistate, nav_group=0):

        signal_map = {
            'source-add'     : self.row_add,
            'source-update'  : self.row_update,
            'source-delete'  : self.row_delete,
            'source-rebuild' : self.object_build,
            }

        ListView.__init__(
            self, _('Sources'), pdata, dbstate, uistate,
            SourceModel, signal_map,
            SourceBookmarks, nav_group,
            multiple=True,
            filter_class=SourceSidebarFilter)

        self.additional_uis.append(self.additional_ui)
开发者ID:SNoiraud,项目名称:gramps,代码行数:19,代码来源:sourceview.py

示例9: __init__

# 需要导入模块: from gramps.gui.views.listview import ListView [as 别名]
# 或者: from gramps.gui.views.listview.ListView import __init__ [as 别名]
    def __init__(self, pdata, dbstate, uistate, nav_group=0):

        signal_map = {
            'citation-add'     : self.row_add,
            'citation-update'  : self.row_update,
            'citation-delete'  : self.row_delete,
            'citation-rebuild' : self.object_build,
            }

        ListView.__init__(
            self, _('Citation View'), pdata, dbstate, uistate,
            CitationListModel, signal_map,
            CitationBookmarks, nav_group,
            multiple=True,
            filter_class=CitationSidebarFilter)

        self.additional_uis.append(self.additional_ui)
开发者ID:SNoiraud,项目名称:gramps,代码行数:19,代码来源:citationlistview.py

示例10: __init__

# 需要导入模块: from gramps.gui.views.listview import ListView [as 别名]
# 或者: from gramps.gui.views.listview.ListView import __init__ [as 别名]
    def __init__(self, pdata, dbstate, uistate, nav_group=0):

        signal_map = {
            'media-add'     : self.row_add,
            'media-update'  : self.row_update,
            'media-delete'  : self.row_delete,
            'media-rebuild' : self.object_build,
            }

        ListView.__init__(
            self, _('Media'), pdata, dbstate, uistate,
            MediaModel,
            signal_map,
            MediaBookmarks, nav_group,
            filter_class=MediaSidebarFilter,
            multiple=True)

        self.additional_uis.append(self.additional_ui)
        self.uistate = uistate
开发者ID:SNoiraud,项目名称:gramps,代码行数:21,代码来源:mediaview.py

示例11: __init__

# 需要导入模块: from gramps.gui.views.listview import ListView [as 别名]
# 或者: from gramps.gui.views.listview.ListView import __init__ [as 别名]
    def __init__(self, pdata, dbstate, uistate, nav_group=0):

        signal_map = {
            'note-add'     : self.row_add,
            'note-update'  : self.row_update,
            'note-delete'  : self.row_delete,
            'note-rebuild' : self.object_build,
        }

        ListView.__init__(
            self, _('Notes'), pdata, dbstate, uistate,
            NoteModel, signal_map,
            NoteBookmarks, nav_group,
            filter_class=NoteSidebarFilter,
            multiple=True)

        self.func_list.update({
            '<PRIMARY>J' : self.jump,
            '<PRIMARY>BackSpace' : self.key_delete,
        })

        self.additional_uis.append(self.additional_ui())
开发者ID:ondrokrc,项目名称:gramps,代码行数:24,代码来源:noteview.py

示例12: __init__

# 需要导入模块: from gramps.gui.views.listview import ListView [as 别名]
# 或者: from gramps.gui.views.listview.ListView import __init__ [as 别名]
    def __init__(self, pdata, dbstate, uistate, title, model, nav_group):

        signal_map = {
            'place-add'     : self.row_add,
            'place-update'  : self.row_update,
            'place-delete'  : self.row_delete,
            'place-rebuild' : self.object_build,
            }

        self.mapservice = config.get('interface.mapservice')
        self.mapservicedata = {}
        self.map_action_group = None

        ListView.__init__(
            self, title, pdata, dbstate, uistate,
            model, signal_map,
            PlaceBookmarks, nav_group,
            multiple=True,
            filter_class=PlaceSidebarFilter)

        uistate.connect('placeformat-changed', self.build_tree)

        _ui = self.__create_maps_menu_actions()
        self.additional_uis.append(_ui)
开发者ID:SNoiraud,项目名称:gramps,代码行数:26,代码来源:libplaceview.py


注:本文中的gramps.gui.views.listview.ListView.__init__方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。