clarify variable name
This commit is contained in:
parent
d57fe375b9
commit
ef0de497a5
@ -94,8 +94,8 @@ class WindowManager:
|
|||||||
if self._sliding_pos == 0:
|
if self._sliding_pos == 0:
|
||||||
self._window.show()
|
self._window.show()
|
||||||
|
|
||||||
left = 1.0 - self._sliding_pos
|
space_to_go = 1.0 - self._sliding_pos
|
||||||
self._sliding_pos += (left / 2)
|
self._sliding_pos += (space_to_go / 2)
|
||||||
|
|
||||||
if self._sliding_pos > .999:
|
if self._sliding_pos > .999:
|
||||||
self._sliding_pos = 1.0
|
self._sliding_pos = 1.0
|
||||||
@ -110,8 +110,8 @@ class WindowManager:
|
|||||||
def __slide_out_timeout_cb(self):
|
def __slide_out_timeout_cb(self):
|
||||||
self._window.show()
|
self._window.show()
|
||||||
|
|
||||||
left = self._sliding_pos
|
space_to_go = self._sliding_pos
|
||||||
self._sliding_pos -= (left / 2)
|
self._sliding_pos -= (space_to_go / 2)
|
||||||
|
|
||||||
if self._sliding_pos < .001:
|
if self._sliding_pos < .001:
|
||||||
self._sliding_pos = 0
|
self._sliding_pos = 0
|
||||||
|
Loading…
Reference in New Issue
Block a user