本文整理汇总了Python中gramps.gui.managedwindow.ManagedWindow.close方法的典型用法代码示例。如果您正苦于以下问题:Python ManagedWindow.close方法的具体用法?Python ManagedWindow.close怎么用?Python ManagedWindow.close使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类gramps.gui.managedwindow.ManagedWindow
的用法示例。
在下文中一共展示了ManagedWindow.close方法的5个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Python代码示例。
示例1: close
# 需要导入模块: from gramps.gui.managedwindow import ManagedWindow [as 别名]
# 或者: from gramps.gui.managedwindow.ManagedWindow import close [as 别名]
def close(self, *obj):
""" Close relcalc tool. Remove non-gtk connections so garbage
collection can do its magic.
"""
self.relationship.disconnect_db_signals(self.dbstate)
self.sel.disconnect(self.changedkey)
ManagedWindow.close(self, *obj)
示例2: close
# 需要导入模块: from gramps.gui.managedwindow import ManagedWindow [as 别名]
# 或者: from gramps.gui.managedwindow.ManagedWindow import close [as 别名]
def close(self, *args):
"""
Close the editor window.
"""
(width, height) = self.window.get_size()
self._config.set('interface.census-width', width)
self._config.set('interface.census-height', height)
self._config.save()
self.details.entry_grid.clean_up()
self.details.clean_up()
self.gallery_list.clean_up()
ManagedWindow.close(self)
示例3: close
# 需要导入模块: from gramps.gui.managedwindow import ManagedWindow [as 别名]
# 或者: from gramps.gui.managedwindow.ManagedWindow import close [as 别名]
def close(self, *args):
"""
Close the editor window.
"""
(width, height) = self.window.get_size()
self._config.set('interface.form-width', width)
self._config.set('interface.form-height', height)
(width, height) = self.window.get_position()
self._config.set('interface.form-horiz-position', width)
self._config.set('interface.form-vert-position', height)
self._config.save()
self.gallery_list.clean_up()
ManagedWindow.close(self)
示例4: close
# 需要导入模块: from gramps.gui.managedwindow import ManagedWindow [as 别名]
# 或者: from gramps.gui.managedwindow.ManagedWindow import close [as 别名]
def close(self, *obj):
ManagedWindow.close(self, *obj)
示例5: close
# 需要导入模块: from gramps.gui.managedwindow import ManagedWindow [as 别名]
# 或者: from gramps.gui.managedwindow.ManagedWindow import close [as 别名]
def close(self, *obj):
"""
Close the selection place editor
"""
self.hide_the_region()
ManagedWindow.close(self, *obj)