aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJesús Eduardo <heckyel@hyperbola.info>2018-01-14 14:27:46 -0500
committerJesús Eduardo <heckyel@hyperbola.info>2018-01-14 14:27:46 -0500
commitff9d1d474e0b34d00257b13f1038b865649837dc (patch)
tree47985e442a718f9c4daf9532adf2c2fe65452308
parent9eb6470e5450d09c9e15b853f949d39484def519 (diff)
downloadlibrevideoconverter-ff9d1d474e0b34d00257b13f1038b865649837dc.tar.lz
librevideoconverter-ff9d1d474e0b34d00257b13f1038b865649837dc.tar.xz
librevideoconverter-ff9d1d474e0b34d00257b13f1038b865649837dc.zip
pep8 en lvc/widgets/osx/viewport.py
-rw-r--r--lvc/widgets/osx/viewport.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/lvc/widgets/osx/viewport.py b/lvc/widgets/osx/viewport.py
index e6564d4..3955b01 100644
--- a/lvc/widgets/osx/viewport.py
+++ b/lvc/widgets/osx/viewport.py
@@ -35,6 +35,7 @@ A Viewport represents the area where a Widget is located.
from objc import YES, NO, nil
from Foundation import *
+
class Viewport(object):
"""Used when a widget creates it's own NSView."""
def __init__(self, view, initial_frame):
@@ -73,6 +74,7 @@ class Viewport(object):
def redraw_now(self):
self.view.displayRect_(self.area())
+
class BorrowedViewport(Viewport):
"""Used when a widget uses the NSView of one of it's ancestors. We store
the view that we borrow as well as an NSRect specifying where on that view