title: Create new dialog in PyQT + Webview
body: <p>I`m trying to develop nice-looking app in pyqt using WebView and have a little problem.
  I want to create new Window by pressing button in WebView.</p>
  
  <p>I have main window(<strong><em>short view</em></strong>):</p>
  
  <pre><code>class LoginWindow(QWidget):
      def __init__(self):
          # creating window and different properties...
          # Its not important,i think.
  
          self.foo = LoginConnector(self)
          view.page().mainFrame().addToJavaScriptWindowObject("foo", self.foo)
  </code></pre>
  
  <p>... connector to JS</p>
  
  <pre><code>class LoginConnector(QObject):
  
  @pyqtSlot(result=str)
  def get_user_list(self):
      return ','.join(core.available_users())
  
  @pyqtSlot()
  def new_window(self):
      print 'Hello!'  
      #What can i do here?
  
  @pyqtSlot()
  def quit(self):
      QApplication.quit()
  </code></pre>
  
  <p>When i`m pressing button in window,its call new_window() from LoginConnector,but how create Dialog inside LoginConnector?</p>
  
  <p><a href="http://pastebin.com/0GqJUvkV" rel="nofollow">Full code</a></p>
  
  <p><strong>SOLVED! I`m idiot,listen that clever guy below</strong></p>