Python Can';t在ubuntu 14.04 x64中显示PyQt4 QSplashScreen窗口

Python Can';t在ubuntu 14.04 x64中显示PyQt4 QSplashScreen窗口,python,ubuntu,pyqt4,Python,Ubuntu,Pyqt4,我在PyQt4 GUI程序中显示启动屏幕时遇到一些问题。运行程序时,启动窗口不显示。控制台没有显示任何错误。下面是一些代码: classmywindow(QtGui.QWidget): def __init__(self, parent=None): QtGui.QWidget.__init__(self, None) ... ... QtCore.QObject.connect(self.pbView, QtCore.SI

我在PyQt4 GUI程序中显示启动屏幕时遇到一些问题。运行程序时,启动窗口不显示。控制台没有显示任何错误。下面是一些代码:

classmywindow(QtGui.QWidget):

  def __init__(self, parent=None):
      QtGui.QWidget.__init__(self, None)
      ...
      ...
      QtCore.QObject.connect(self.pbView,
          QtCore.SIGNAL('clicked()'), lambda: self.view_plot(parent))

  def view_plot(self, parent=None):
      self.pic = QtGui.QPixmap("splash.gif")
      self.splash = QtGui.QSplashScreen(parent, self.pic, 
                      QtCore.Qt.WindowStaysOnTopHint)
      self.splash.show()
      ...
      self.splash.showMessage(u"Work completed in... {0} %".format(i),
        QtCore.Qt.AlignCenter | QtCore.Qt.AlignBottom, QtCore.Qt.black)
      ...
      self.splash.finish(parent)

请帮忙

对不起,我弄错了,我明白是什么错了-程序找不到图片。因为我写了一个大项目,并将代码文件存储在多个目录中。图片文件必须在主目录中,即启动主窗口的目录中,而不是在运行子窗口的目录中。有时我们只需要暂停一下,喝杯咖啡……

对不起,我弄错了,我明白是什么错了-程序找不到图片。因为我写了一个大项目,并将代码文件存储在多个目录中