[pitivi] ProjectSettings: constrain DAR/PAR values to each other
- From: Edward Hervey <edwardrv src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [pitivi] ProjectSettings: constrain DAR/PAR values to each other
- Date: Fri, 10 Dec 2010 17:49:51 +0000 (UTC)
commit b173c80ef3109a614d538685391dd84984564932
Author: Brandon Lewis <brandon_lewis alum berkeley edu>
Date: Fri Nov 19 18:23:39 2010 +0000
ProjectSettings: constrain DAR/PAR values to each other
pitivi/ui/projectsettings.py | 6 ++++++
1 files changed, 6 insertions(+), 0 deletions(-)
---
diff --git a/pitivi/ui/projectsettings.py b/pitivi/ui/projectsettings.py
index ca8248c..68cc316 100644
--- a/pitivi/ui/projectsettings.py
+++ b/pitivi/ui/projectsettings.py
@@ -171,6 +171,12 @@ class ProjectSettingsDialog(GladeWindow):
self.par_fraction_widget.set_sensitive(not state)
self.par_combo.set_sensitive(not state)
+ def darSelected(self):
+ return self.select_dar_radiobutton.props.active
+
+ def parSelected(self):
+ return not self.darSelected()
+
def updateWidth(self):
height = int(self.height_spinbutton.get_value())
self.width_spinbutton.set_value(height * self.sar)
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]