本文整理汇总了Python中Debug.printe方法的典型用法代码示例。如果您正苦于以下问题:Python Debug.printe方法的具体用法?Python Debug.printe怎么用?Python Debug.printe使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Debug
的用法示例。
在下文中一共展示了Debug.printe方法的2个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Python代码示例。
示例1: _handle_db_click
# 需要导入模块: import Debug [as 别名]
# 或者: from Debug import printe [as 别名]
def _handle_db_click(self, event):
Debug.printe(event, Debug.Level.INFO)
item = self._listbox.get(ACTIVE)
results = WallTextureDialog(self, populator=WallTextureContainer(self._items[item]))
self._remove_texture()
self._add_new_texture(results._entries)
pass
示例2: _handle_r_click
# 需要导入模块: import Debug [as 别名]
# 或者: from Debug import printe [as 别名]
def _handle_r_click(self, event):
"""
Handle mouse right click as a callback function
Handle mouse right click by displaying a context menu for this widget,
allow the addition and removal of window pics
:param event: The event generated by the window manager, automatically provided
"""
Debug.printe(event, Debug.Level.INFO)
# Create the menu to display
p_menu = Menu(self._parent)
p_menu.add_command(label="Add Picture", command=lambda: self._add_new_wall_pic())
p_menu.add_command(label="Delete Picture", command=lambda: self._remove_wall_pic())
p_menu.add_command(label="Delete All", command=lambda: self.remove_all())
p_menu.post(event.x_root, event.y_root)