title: QPalette , set background image Python3 PyQT4
body: <p>I am trying to set a background image to a QFrame I am calling in a QMainWindows like such :</p>
  
  <pre><code>        class MainWin(QtGui.QMainWindow):
  
          def __init__(self):
          super(MainWin, self).__init__()
  
          self.initUI()
  
  
          def initUI(self):
  
  
          #central widget
          self.theboard = Board(self)
          self.setCentralWidget(self.theboard)
  
  
  
  
          class Board(QtGui.QFrame):
  
          def __init__(self, parent):
          super(Board, self).__init__(parent)
  
          self.initBoard()
  
          def initBoard(self):
  
          #Set background Image
           frame = Board
           palette = QPalette()
           palette.setBrush(QPalette.Background,QBrush(QPixmap("ImageTest.jpg"))) 
           frame.setPalette(palette)
  </code></pre>
  
  <p>Using Qpalette / Qpixmap as I have found on some exemple on the net. 
  But it don't work :</p>
  
  <p>self.palette = QPalette()
  NameError: global name 'QPalette' is not defined</p>
  
  <p>Why ? Here my class : class Board(QtGui.QFrame): </p>
  
  <p>I am well inheriting of QtGui so Qpalette should work. 
  I have to admit I am a bit confuse with the way Qpalette works.</p>
  
  <p>Any help much apreciated,</p>
  
  <p>Thanks !</p>