[pitivi] ProjectSettings: add FractionWidgets programatically
- From: Edward Hervey <edwardrv src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [pitivi] ProjectSettings: add FractionWidgets programatically
- Date: Fri, 10 Dec 2010 17:49:00 +0000 (UTC)
commit ef37fd397cc20d8287b044584d891d156e11bafb
Author: Brandon Lewis <brandon_lewis alum berkeley edu>
Date: Fri Nov 19 17:53:40 2010 +0000
ProjectSettings: add FractionWidgets programatically
pitivi/ui/projectsettings.py | 17 +++++++++++++++++
1 files changed, 17 insertions(+), 0 deletions(-)
---
diff --git a/pitivi/ui/projectsettings.py b/pitivi/ui/projectsettings.py
index 98f98f9..7bc6a58 100644
--- a/pitivi/ui/projectsettings.py
+++ b/pitivi/ui/projectsettings.py
@@ -25,6 +25,7 @@ Dialog box for project settings
import gtk
from pitivi.ui.glade import GladeWindow
+from pitivi.ui.dynamic import FractionWidget
class ProjectSettingsDialog(GladeWindow):
glade_file = "projectsettings.glade"
@@ -33,6 +34,22 @@ class ProjectSettingsDialog(GladeWindow):
GladeWindow.__init__(self, parent)
self.project = project
+ # add custom widgets
+ self.dar_fraction_widget = FractionWidget()
+ self.video_properties_table.attach(self.dar_fraction_widget,
+ 0, 1, 6, 7, xoptions=gtk.EXPAND | gtk.FILL, yoptions=0)
+ self.dar_fraction_widget.show()
+
+ # add custom widgets
+ self.par_fraction_widget = FractionWidget()
+ self.video_properties_table.attach(self.par_fraction_widget,
+ 1, 2, 6, 7, xoptions=gtk.EXPAND | gtk.FILL, yoptions=0)
+ self.par_fraction_widget.show()
+
+ self.frame_rate_fraction_widget = FractionWidget()
+ self.video_properties_table.attach(self.frame_rate_fraction_widget,
+ 1, 2, 2, 3, xoptions=gtk.EXPAND | gtk.FILL, yoptions=0)
+ self.frame_rate_fraction_widget.show()
def updateSettings(self):
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]