ya2
·
news
·
projects
·
code
·
about
Ya2
/
projects
/
pmachines.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
blame
|
history
|
raw
|
HEAD
retrieve test coordinates
[pmachines.git]
/
logics
/
posmgr.py
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
]