[pitivi: 23/27] dynamic: Fixe indentation



commit b6bbc5725b166bd66d5fc70485d364f1f2caae97
Author: Thibault Saunier <thibault saunier collabora co uk>
Date:   Wed Jan 19 17:31:39 2011 +0100

    dynamic: Fixe indentation

 pitivi/ui/dynamic.py |   21 ++++++++++-----------
 1 files changed, 10 insertions(+), 11 deletions(-)
---
diff --git a/pitivi/ui/dynamic.py b/pitivi/ui/dynamic.py
index ec3efcd..4b72a44 100644
--- a/pitivi/ui/dynamic.py
+++ b/pitivi/ui/dynamic.py
@@ -240,22 +240,21 @@ class TimeWidget(TextWidget, DynamicWidget):
         TextWidget.__init__(self, self.regex)
 
     def getWidgetValue(self):
+        timecode = TextWidget.getWidgetValue(self)
 
-      timecode = TextWidget.getWidgetValue(self)
+        hh, mm, end = timecode.split(":")
+        ss, xxx = end.split(".")
+        nanosecs = int(hh) * 3.6 * 10e12 \
+            + int(mm) * 6 * 10e10 \
+            + int(ss) * 10e9 \
+            + int(xxx) * 10e6
 
-      hh, mm, end = timecode.split(":")
-      ss, xxx = end.split(".")
-      nanosecs = int(hh) * 3.6 * 10e12 \
-          + int(mm) * 6 * 10e10 \
-          + int(ss) * 10e9 \
-          + int(xxx) * 10e6
+        nanosecs = nanosecs / 10 # Compensate the 10 factor of e notation
 
-      nanosecs = nanosecs / 10 # Compensate the 10 factor of e notation
-
-      return nanosecs
+        return nanosecs
 
     def setWidgetValue(self, value, send_signal = True):
-      TextWidget.setWidgetValue(self, time_to_string(value),
+        TextWidget.setWidgetValue(self, time_to_string(value),
                                 send_signal = send_signal)
 
     def connectFocusEvents (self, focusInCb, focusOutCb):



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]