Advertisement
Guest User

Untitled

a guest
Jul 27th, 2017
51
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.57 KB | None | 0 0
  1. data = """Designing a Component         Creating a GUI for your application
  2.     Creating a Dialog           How to create a dialog
  3.     Composing the Dialog        Putting widgets into the dialog example
  4.     Creating a Layout           Arranging widgets on a form
  5.     Signal and Slot Connections     Making widget communicate with each other
  6. """
  7.  
  8. if __name__ == '__main__':
  9.  
  10.     import sys
  11.  
  12.     app = QtGui.QApplication(sys.argv)
  13.  
  14.     model = TreeModel(data)
  15.  
  16.     view = QtGui.QTreeView()
  17.     view.setModel(model)
  18.     view.setWindowTitle("Simple Tree Model")
  19.     view.show()
  20.     sys.exit(app.exec_())
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement