Modificata la posizione della scelta dell'orientazione e altre
Leonardo Robol [2009-09-21 16:22]
Modificata la posizione della scelta dell'orientazione e altre
piccole cose
diff --git a/DrPrintGui/Input.py b/DrPrintGui/Input.py
index 9558618..d03564a 100644
--- a/DrPrintGui/Input.py
+++ b/DrPrintGui/Input.py
@@ -101,6 +101,10 @@ class SelectFileWidget(gtk.HBox):
self.Filename = gtk.Entry()
self.Browser = gtk.Button("Sfoglia")
+ self.Filename.set_tooltip_text("Se hai bisogno di stampare \
+da un programma clicca File -> Stampa -> Stampa su file e crea un \
+file .ps da selezionare qui")
+
self.Browser.connect('clicked', self.SelectFile)
self.pack_start(self.Filename, 1)
@@ -285,14 +289,14 @@ class CopiesField(gtk.Entry):
-class OrientationSelect(gtk.VBox):
+class OrientationSelect(gtk.HBox):
def __init__(self):
- gtk.VBox.__init__(self)
+ gtk.HBox.__init__(self)
# Un etichetta per capire a cosa servono questi radio button
- label = LeftAlignedLabel("<b>Orientamento della pagina</b>")
+ label = LeftAlignedLabel("Orientamento", 20)
self.pack_start( label )
label.show()
@@ -304,13 +308,11 @@ class OrientationSelect(gtk.VBox):
portrait = gtk.RadioButton(landscape,
"Verticale",
True)
- landscape_pad = PaddingLeftWidget(landscape, 20)
- portrait_pad = PaddingLeftWidget(portrait, 20)
- self.pack_start(landscape_pad)
- self.pack_start(portrait_pad)
+ self.pack_start(landscape)
+ self.pack_start(portrait)
- landscape_pad.show ()
- portrait_pad.show ()
+ landscape.show ()
+ portrait.show ()
portrait.set_active(True)
diff --git a/DrPrintGui/MainWin.py b/DrPrintGui/MainWin.py
index 3340661..5c5fdd8 100644
--- a/DrPrintGui/MainWin.py
+++ b/DrPrintGui/MainWin.py
@@ -66,6 +66,10 @@ class MainWin(gtk.Window):
layout_box.pack_start(self.printer_settings_block)
self.printer_settings_block.show()
+ self.orientation_select = OrientationSelect()
+ layout_box.pack_start(self.orientation_select)
+ self.orientation_select.show()
+
label = LeftAlignedLabel("<b>Configurazione Avanzata</b>")
layout_box.pack_start(label)
label.show()
@@ -74,9 +78,6 @@ class MainWin(gtk.Window):
layout_box.pack_start(self.page_range_block)
self.page_range_block.show()
- self.orientation_select = OrientationSelect()
- layout_box.pack_start(self.orientation_select)
- self.orientation_select.show()
self.print_button = PrintButton()
layout_box.pack_start(self.print_button)