diff options
author | Jezra <jezra@jezra.net> | 2013-07-02 07:05:51 -0700 |
---|---|---|
committer | Jezra <jezra@jezra.net> | 2013-07-02 07:05:51 -0700 |
commit | bd290f006130827b0630bf36ab058bb82f4ce29d (patch) | |
tree | 47477e0ca24ad963134d72e4d4e87d568687e9e3 /QtUI.py | |
parent | 3d1a7ff6d07380af777194d1b95e2dafa65033cb (diff) |
icon, dumbass
Diffstat (limited to 'QtUI.py')
-rw-r--r-- | QtUI.py | 8 |
1 files changed, 4 insertions, 4 deletions
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)) |