Exemplo n.º 1
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
Exemplo n.º 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
Exemplo n.º 3
0
    def set_horizontal_offset(self,o):
        """Change the horizontal offset from the left or right."""

        _pyosd.set_horizontal_offset(self._osd,o)