Add get_aux_locations.

This commit is contained in:
Ray 2009-03-07 17:02:51 -05:00
parent 753754c924
commit 5f60cfde7c

View File

@ -529,6 +529,16 @@ class Config:
( 0, 280), (121, 280), ( 46, 30) ) ( 0, 280), (121, 280), ( 46, 30) )
return locations return locations
def get_aux_locations(self, aux = "mucked", max = "9"):
try:
locations = self.aux_windows[aux].layout[max].location
except:
locations = ( ( 0, 0), (684, 61), (689, 239), (692, 346),
(586, 393), (421, 440), (267, 440), ( 0, 361),
( 0, 280), (121, 280), ( 46, 30) )
return locations
def get_supported_sites(self): def get_supported_sites(self):
"""Returns the list of supported sites.""" """Returns the list of supported sites."""
return self.supported_sites.keys() return self.supported_sites.keys()
@ -681,6 +691,8 @@ if __name__== "__main__":
for mw in c.get_aux_windows(): for mw in c.get_aux_windows():
print c.get_aux_parameters(mw) print c.get_aux_parameters(mw)
print "mucked locations =", c.get_aux_locations('mucked', 9)
for site in c.supported_sites.keys(): for site in c.supported_sites.keys():
print "site = ", site, print "site = ", site,
print c.get_site_parameters(site) print c.get_site_parameters(site)