From bd290f006130827b0630bf36ab058bb82f4ce29d Mon Sep 17 00:00:00 2001 From: Jezra Date: Tue, 2 Jul 2013 07:05:51 -0700 Subject: icon, dumbass --- QtUI.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'QtUI.py') diff --git a/QtUI.py b/QtUI.py index c4a5a54..071dab4 100644 --- a/QtUI.py +++ b/QtUI.py @@ -6,7 +6,7 @@ import gobject # Qt stuff from PySide.QtCore import Signal, Qt from PySide.QtGui import QApplication, QWidget, QMainWindow, QVBoxLayout -from PySide.QtGui import QLabel, QPushButton, QCheckBox +from PySide.QtGui import QLabel, QPushButton, QCheckBox, QIcon class UI(gobject.GObject): __gsignals__ = { @@ -76,9 +76,6 @@ class UI(gobject.GObject): self.app.exec_() self.emit("command", "quit") - def quit(self): - pass - def finished(self, text): print text #if the continuous isn't pressed @@ -89,3 +86,6 @@ class UI(gobject.GObject): def quit(self): #sys.exit() pass + + def set_icon(self, icon): + self.window.setWindowIcon(QIcon(icon)) -- cgit 1.4.1