sdlterm/cython/sdlterm.pyx
changeset 50 c5b8b9d2da95
parent 49 1611c462c3e3
child 53 c4263588b716
equal deleted inserted replaced
49:1611c462c3e3 50:c5b8b9d2da95
    75     def putch(self, x, y, ch):
    75     def putch(self, x, y, ch):
    76         self.thisptr.putch(x, y, ch)
    76         self.thisptr.putch(x, y, ch)
    77     def commit(self):
    77     def commit(self):
    78         self.thisptr.commit()
    78         self.thisptr.commit()
    79 
    79 
       
    80     def prepare_attr(self, fg, bg, style):
       
    81         return self.thisptr.prepare_attr(fg, bg, style)
       
    82     def set_attr(self, value):
       
    83         self.thisptr.set_attr(value)
       
    84 
    80     def get_next_event(self):
    85     def get_next_event(self):
    81         self.thisptr.get_next_event(self.event)
    86         self.thisptr.get_next_event(self.event)
    82         event = self.event
    87         event = self.event
    83         if event.type == event.MOUSEMOVE:
    88         if event.type == event.MOUSEMOVE:
    84             return ('mousemove', event.mouse.x, event.mouse.y)
    89             return ('mousemove', event.mouse.x, event.mouse.y)