예제 #1
0
파일: pnggrid.py 프로젝트: imclab/pnggrid
 def from_utfgrid_string(cls, string):
     return cls.from_utfgrid(UTFGrid.from_string(string))
예제 #2
0
파일: pnggrid.py 프로젝트: imclab/pnggrid
 def from_utfgrid_file(cls, file):
     return cls.from_utfgrid(UTFGrid.from_file(file))
예제 #3
0
 def setUp(self):
     self.utfgrid = UTFGrid.from_file(open('demo.json'))
예제 #4
0
 def setUp(self):
     self.utfgrid = UTFGrid.from_file(open('europe.json'))
     self.pnggrid = PNGGrid.from_utfgrid_file(open('europe.json'))
예제 #5
0
 def from_utfgrid_file(cls, file):
     return cls.from_utfgrid(UTFGrid.from_file(file))
예제 #6
0
 def from_utfgrid_string(cls, string):
     return cls.from_utfgrid(UTFGrid.from_string(string))