title: PyQt frameless window at specified coordinates
body: <p>After much googling I'm aware that I need to use       <code>self.setWindowFlags(QtCore.Qt.FramelessWindowHint)</code></p>
  
  <p>to generate a frameless window, and some variation of the co-ordinates (0,0) to place it in the upper left corner of the screen.</p>
  
  <p>The problem I'm having is that everywhere that I've tried using this code, it generates errors, even in my sparse existing code:</p>
  
  <pre><code>from PyQt4 import QtCore, QtGui
  from ui.mainwindow import MainWindow
  
  if __name__ == "__main__":
      import sys
      app = QtGui.QApplication(sys.argv)
      ui = MainWindow()
      ui.show()
      sys.exit(app.exec_())
  </code></pre>
  
  <p>After much googling I'm unable to make solutions that work for others work for me.
  What is the magic syntax to get my window displayed without borders in the upper left corner of the screen?</p>