ya2
·
news
·
projects
·
code
·
about
Ya2
/
projects
/
pmachines.git
/ blame
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
blob
|
blame
(incremental) |
history
|
HEAD
retrieve test coordinates
[pmachines.git]
/
logics
/
posmgr.py
Commit
Line
Data
2d1773b1
FC
1
class PositionMgr:
2
3
def __init__(self):
4
self._pos = {}
5
6
def reset(self):
7
self._pos = {}
8
9
def register(self, wdg, pos):
10
print('register', wdg, pos)
11
self._pos[wdg] = pos
12
13
def get(self, tgt):
14
return self._pos[tgt]