Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- data = """Designing a Component Creating a GUI for your application
- Creating a Dialog How to create a dialog
- Composing the Dialog Putting widgets into the dialog example
- Creating a Layout Arranging widgets on a form
- Signal and Slot Connections Making widget communicate with each other
- """
- if __name__ == '__main__':
- import sys
- app = QtGui.QApplication(sys.argv)
- model = TreeModel(data)
- view = QtGui.QTreeView()
- view.setModel(model)
- view.setWindowTitle("Simple Tree Model")
- view.show()
- sys.exit(app.exec_())
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement