Commit 684db23f authored by Maxime Perrotin's avatar Maxime Perrotin
Browse files

Clean code

parent 43f4d84a
...@@ -188,9 +188,7 @@ class sdlHandler(QObject): ...@@ -188,9 +188,7 @@ class sdlHandler(QObject):
ctypes.POINTER(ctypes.c_uint32)) ctypes.POINTER(ctypes.c_uint32))
setter_ptr(value_ptr) setter_ptr(value_ptr)
state_value = target_state[idx+1] state_value = target_state[idx+1]
print 'setting state back to', state_value
set_state = getattr(self.dll, "_set_state") set_state = getattr(self.dll, "_set_state")
# todo string to cyptes, and call setter_state
set_state(ctypes.c_char_p(state_value)) set_state(ctypes.c_char_p(state_value))
self.check_state() self.check_state()
self.on_event() self.on_event()
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment