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

Revision 9372:aef193695ea9, 326 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 OWNxExplorer
9
10net = Orange.network.readwrite.read('musicians.net')
11net.set_items(Orange.data.Table('musicians_items.tab'))
12
13ow = OWNxExplorer.OWNxExplorer()
14ow.set_graph(net)
15
16ow.show()
17appl.exec_()
Note: See TracBrowser for help on using the repository browser.