Skip to content

Commit

Permalink
Added a warning for Qt4 when missing deps
Browse files Browse the repository at this point in the history
Added a warning when started with the Qt4 front-end and the ui_*.py files
are missing. These are generated by generateFiles.sh, as specified in the
README

Signed-off-by: Stéphane Bisinger <stephane.bisinger@gmail.com>
  • Loading branch information
Kjir committed May 29, 2009
1 parent ace647f commit 54c9990
Show file tree
Hide file tree
Showing 3 changed files with 18 additions and 3 deletions.
7 changes: 6 additions & 1 deletion amsn2/gui/front_ends/qt4/chat_window.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,12 @@
from PyQt4.QtCore import *
from PyQt4.QtGui import *
from PyQt4 import *
from ui_chatWindow import Ui_ChatWindow
try:
from ui_chatWindow import Ui_ChatWindow
except ImportError, e:
# FIXME: Should do that with logging...
print "WARNING: To use the QT4 you need to run the generateFiles.sh, check the README"
raise e
from amsn2.core.views import ContactView, StringView

class InputWidget(QTextEdit):
Expand Down
7 changes: 6 additions & 1 deletion amsn2/gui/front_ends/qt4/contact_list.py
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,12 @@
from PyQt4.QtGui import *
from contact_model import ContactModel
from contact_item import ContactItem
from ui_contactlist import Ui_ContactList
try:
from ui_contactlist import Ui_ContactList
except ImportError, e:
# FIXME: Should do that with logging...
print "WARNING: To use the QT4 you need to run the generateFiles.sh, check the README"
raise e
from styledwidget import StyledWidget
from amsn2.core.views import StringView, ContactView
from amsn2.gui import base
Expand Down
7 changes: 6 additions & 1 deletion amsn2/gui/front_ends/qt4/login.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,12 @@

from PyQt4.QtCore import *
from PyQt4.QtGui import *
from ui_login import Ui_Login
try:
from ui_login import Ui_Login
except ImportError, e:
# FIXME: Should do that with logging...
print " WARNING: To use the QT4 you need to run the generateFiles.sh, check the README"
raise e
from styledwidget import StyledWidget


Expand Down

0 comments on commit 54c9990

Please sign in to comment.