From af41e2918ff00e8cd9fde1824b8de465e75dc44d Mon Sep 17 00:00:00 2001 From: Leonardo Robol Date: Mon, 21 Sep 2009 18:22:45 +0200 Subject: [PATCH] Modificata la posizione della scelta dell'orientazione e altre piccole cose --- DrPrintGui/Input.py | 20 +++++++++++--------- DrPrintGui/MainWin.py | 7 ++++--- 2 files changed, 15 insertions(+), 12 deletions(-) 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("Orientamento della pagina") + 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("Configurazione Avanzata") 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) -- 2.1.4