From c28ef67f49e7c578e262e722cabab329fee37e69 Mon Sep 17 00:00:00 2001 From: Leonardo Date: Mon, 21 Jun 2010 10:55:01 +0200 Subject: [PATCH] Tolte stampe di debug e piccolo baco. --- DrPrintBackend.py | 2 -- DrPrintGui/MainWin.py | 2 +- 2 files changed, 1 insertion(+), 3 deletions(-) diff --git a/DrPrintBackend.py b/DrPrintBackend.py index 7905158..dce23a7 100644 --- a/DrPrintBackend.py +++ b/DrPrintBackend.py @@ -40,8 +40,6 @@ class Backend(gobject.GObject): stdin, stdout, stderr = client.exec_command("lpq -P%s" % printer) output = stdout.read() - print output - # Parse output jobs = [] for line in re.findall(r"active\s+(\w+)\s+(\d+)\s+(.+)\s+(\d+) bytes", output): diff --git a/DrPrintGui/MainWin.py b/DrPrintGui/MainWin.py index 15775e8..d86823f 100644 --- a/DrPrintGui/MainWin.py +++ b/DrPrintGui/MainWin.py @@ -168,7 +168,7 @@ class MainWin(gtk.Window): # Se siamo riusciti a scucire qualche informazione la mostriamo, # altrimenti no. self.queue_button.set_state("idle") - if jobs: + if jobs is not None: qd = QueueDialog(jobs, printer) resp = qd.run() qd.destroy() -- 2.1.4