Example #1
0
    def set_timeout(self, t):
        """Change the timeout.

        This takes effect immediately; anything that is currently displayed
        will wait the new timeout time before clearing."""

        _pyosd.set_timeout(self._osd, t)
Example #2
0
 def __init__(self, font=FONT, colour="#FFFFFF",timeout=3, \
              offset=0, hoffset=0, shadow=0):
     self._osd = _pyosd.init(1)
     # attributes
     _pyosd.set_font(self._osd, font)
     _pyosd.set_colour(self._osd, colour)
     _pyosd.set_pos(self._osd, 2) # middle
     _pyosd.set_vertical_offset(self._osd, offset)
     _pyosd.set_horizontal_offset(self._osd, hoffset)
     _pyosd.set_shadow_offset(self._osd, shadow)
     _pyosd.set_align(self._osd, 1) # center
     _pyosd.set_timeout(self._osd, timeout)
     # save this as we won't have access to it on del
     self._deinit = _pyosd.deinit
Example #3
0
 def __init__(self, font=FONT, colour="#FFFFFF",timeout=3, \
              offset=0, hoffset=0, shadow=0):
     self._osd = _pyosd.init(1)
     # attributes
     _pyosd.set_font(self._osd, font)
     _pyosd.set_colour(self._osd, colour)
     _pyosd.set_pos(self._osd, 2)  # middle
     _pyosd.set_vertical_offset(self._osd, offset)
     _pyosd.set_horizontal_offset(self._osd, hoffset)
     _pyosd.set_shadow_offset(self._osd, shadow)
     _pyosd.set_align(self._osd, 1)  # center
     _pyosd.set_timeout(self._osd, timeout)
     # save this as we won't have access to it on del
     self._deinit = _pyosd.deinit