source: orange/docs/reference/rst/code/network-widget.py @ 9372:aef193695ea9

Revision 9372:aef193695ea9, 323 bytes checked in by mitar, 2 years ago (diff)

Moved documentation to the separate directory.

Line 
1import sys
2from PyQt4.QtGui import QApplication
3
4appl = QApplication(sys.argv)
5
6import Orange.data
7import Orange.network
8import OWNetExplorer
9
10net = Orange.network.Network.read('musicians.net')
11net.items = Orange.data.Table('musicians_items.tab')
12
13ow = OWNetExplorer.OWNetExplorer()
14ow.setGraph(net)
15
16ow.show()
17appl.exec_()
Note: See TracBrowser for help on using the repository browser.