Un po' di ridimensionamenti nell'interfaccia

Leonardo Robol [2009-11-03 07:55]
Un po' di ridimensionamenti nell'interfaccia
Filename
RaiTV/Interface.py
RaiTV/VideoWidget.py
ui/RaiTV.ui
diff --git a/RaiTV/Interface.py b/RaiTV/Interface.py
index aa09db1..db603e0 100644
--- a/RaiTV/Interface.py
+++ b/RaiTV/Interface.py
@@ -32,10 +32,10 @@ class UI():

         ## Questo hbox è quello dove dobbiamo inserire
         ## la videowidget
-        self.hbox1 = self.builder.get_object("hbox1")
+        self.pannellocentrale = self.builder.get_object("pannellocentrale")

         self.videowidget = VideoWidget()
-        self.hbox1.pack_start(self.videowidget)
+        self.pannellocentrale.pack2(self.videowidget)

         ## Visualizziamo il nome del canale
         col = gtk.TreeViewColumn("Selezione canale")
@@ -45,7 +45,7 @@ class UI():
         self.listacanali.append_column(col)

         ## Qualche setting prima di partire
-        self.win.resize(640,480)
+        self.win.resize(740,480)

         ## Carico i pulsanti
         self.stop_btn, self.play_btn, self.pause_btn, self.record_btn, self.updatelist = \
diff --git a/RaiTV/VideoWidget.py b/RaiTV/VideoWidget.py
index 91621b6..08445f3 100644
--- a/RaiTV/VideoWidget.py
+++ b/RaiTV/VideoWidget.py
@@ -78,7 +78,7 @@ class VideoWidget(gtk.DrawingArea):
         ## di nero
         gtk.DrawingArea.__init__(self)

-        self.set_size_request(320,320)
+        self.set_size_request(240,240)
         self.unset_flags(gtk.DOUBLE_BUFFERED)

         ## Connetto l'expose-event
diff --git a/ui/RaiTV.ui b/ui/RaiTV.ui
index f0481bd..f018a39 100644
--- a/ui/RaiTV.ui
+++ b/ui/RaiTV.ui
@@ -154,10 +154,12 @@
           </packing>
         </child>
         <child>
-          <object class="GtkHBox" id="hbox1">
+          <object class="GtkHPaned" id="pannellocentrale">
             <property name="visible">True</property>
+            <property name="can_focus">True</property>
             <child>
               <object class="GtkScrolledWindow" id="scrolledwindow1">
+                <property name="width_request">180</property>
                 <property name="visible">True</property>
                 <property name="can_focus">True</property>
                 <property name="hscrollbar_policy">automatic</property>
@@ -172,7 +174,8 @@
                 </child>
               </object>
               <packing>
-                <property name="position">0</property>
+                <property name="resize">False</property>
+                <property name="shrink">True</property>
               </packing>
             </child>
             <child>
@@ -184,6 +187,16 @@
           </packing>
         </child>
         <child>
+          <object class="GtkHSeparator" id="hseparator1">
+            <property name="visible">True</property>
+          </object>
+          <packing>
+            <property name="expand">False</property>
+            <property name="padding">2</property>
+            <property name="position">2</property>
+          </packing>
+        </child>
+        <child>
           <object class="GtkHBox" id="hbox2">
             <property name="visible">True</property>
             <child>
@@ -288,7 +301,7 @@
           </object>
           <packing>
             <property name="expand">False</property>
-            <property name="position">2</property>
+            <property name="position">3</property>
           </packing>
         </child>
         <child>
@@ -298,7 +311,7 @@
           </object>
           <packing>
             <property name="expand">False</property>
-            <property name="position">3</property>
+            <property name="position">4</property>
           </packing>
         </child>
       </object>
ViewGit