mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
...
This commit is contained in:
parent
22035b8e07
commit
d61af79c8c
BIN
resources/images/news/ledevoir.png
Normal file
BIN
resources/images/news/ledevoir.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 531 B |
@ -140,6 +140,18 @@ class Interval(object):
|
||||
def __hash__(self):
|
||||
return hash('(%f,%f)'%self.left, self.right)
|
||||
|
||||
class Region(object):
|
||||
|
||||
def __init__(self):
|
||||
self.columns = []
|
||||
self.top = self.bottom = self.left = self.right = self.width = self.height = 0
|
||||
|
||||
def add_columns(self, columns):
|
||||
if not self.columns:
|
||||
for x in sorted(columns, cmp=lambda x,y: cmp(x.left, y.left)):
|
||||
self.columns.append(x)
|
||||
else:
|
||||
pass
|
||||
|
||||
class Page(object):
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user