本文整理汇总了Python中resources.Resources.createArrowIcon方法的典型用法代码示例。如果您正苦于以下问题:Python Resources.createArrowIcon方法的具体用法?Python Resources.createArrowIcon怎么用?Python Resources.createArrowIcon使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类resources.Resources
的用法示例。
在下文中一共展示了Resources.createArrowIcon方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Python代码示例。
示例1: __init__
# 需要导入模块: from resources import Resources [as 别名]
# 或者: from resources.Resources import createArrowIcon [as 别名]
def __init__(self):
''' Creates a _PictureBoxPanel. Call set_image after initialization. '''
# the left and right arrow Image objects
self.__left_arrow = Resources.createArrowIcon(True, False)
self.__full_left_arrow = Resources.createArrowIcon(True, True)
self.__right_arrow = Resources.createArrowIcon(False, False)
self.__full_right_arrow = Resources.createArrowIcon(False, True)
# the vertical line boundary between the full_left and left arrow's
# 'clickable columns' and the full_right and right arrow's.
self.__left_bound = 0;
self.__right_bound = 0;
# the image attributes to use for drawing non-alpha blended images
self.__hovered_image_atts = None
# the image attributes to use for drawing alpha blended images
self.__normal_image_atts = None
# a string indicating whether the mouse is hovered over the full
# left ('FL'), left ('L'), right ('R'), or full right ('FR') side of
# this panel, or None if the mouse isn't over the panel at all.
self.__mouse_hovered_state = None
# our PictureBox object, which we center and stretch as needed
self._picbox = None
Panel.__init__(self)
self.__build_gui()