PEP8 CameraMugshotDialog.py

This commit is contained in:
Sean Davis 2014-04-01 21:20:43 -04:00
parent f902963fa3
commit 85a69692ab
1 changed files with 12 additions and 11 deletions

View File

@ -237,8 +237,8 @@ class CameraMugshotDialog(CameraDialog):
if message_name == "prepare-window-handle": if message_name == "prepare-window-handle":
imagesink = message.src imagesink = message.src
imagesink.set_property("force-aspect-ratio", True) imagesink.set_property("force-aspect-ratio", True)
imagesink.set_window_handle( imagesink.set_window_handle(self.video_window.get_window()
self.video_window.get_window().get_xid()) .get_xid())
def __on_video_window_realized(self, widget, data=None): def __on_video_window_realized(self, widget, data=None):
"""Internal signal handler, used to set up the xid for the drawing area """Internal signal handler, used to set up the xid for the drawing area
@ -348,6 +348,7 @@ class CameraMugshotDialog(CameraDialog):
__gsignals__ = {'image-captured': (GObject.SIGNAL_RUN_LAST, __gsignals__ = {'image-captured': (GObject.SIGNAL_RUN_LAST,
GObject.TYPE_NONE, GObject.TYPE_NONE,
(GObject.TYPE_PYOBJECT,)), (GObject.TYPE_PYOBJECT,)),
'apply': (GObject.SIGNAL_RUN_LAST, GObject.TYPE_NONE, 'apply': (GObject.SIGNAL_RUN_LAST,
GObject.TYPE_NONE,
(GObject.TYPE_STRING,)) (GObject.TYPE_STRING,))
} }