orange-text / _text / widgets / prototypes /

Diff from to


-from OWWidget import *
-from OWCorrAnalysisGraph import *
-import OWGUI, OWToolbars, OWColorPalette
-import orngCA
+from __future__ import absolute_import
+import os
 from numpy import *
-from OWToolbars import ZoomSelectToolbar
+from Orange.orng import orngCA
+from Orange.OrangeWidgets.OWWidget import *
+from Orange.OrangeWidgets import OWGUI, OWToolbars, OWColorPalette
+from Orange.OrangeWidgets.OWToolbars import ZoomSelectToolbar
-    import orngText
+    from .. import orngText
 except Exception:
 textCorpusModul = 1
-    from orngTextCorpus import CategoryDocument, checkFromText
+    # TODO: Missing?
+    from ..orngTextCorpus import CategoryDocument, checkFromText
 except ImportError:
     textCorpusModul = 0
 except Exception:
     textCorpusModul = 0
-import os
+from .OWCorrAnalysisGraph import *
 def checkFromText(data):
 if __name__=="__main__":
     #from orngTextCorpus import *
-    import cPickle, orngText
+    import cPickle
+    from .. import orngText
 ##    os.chdir("/home/mkolar/Docs/Diplomski/repository/orange/OrangeWidgets/Other/")
     appl = QApplication(sys.argv)
     ow = OWCorrAnalysis()
Tip: Filter by directory path e.g. /media app.js to search for public/media/app.js.
Tip: Use camelCasing e.g. ProjME to search for
Tip: Filter by extension type e.g. /repo .js to search for all .js files in the /repo directory.
Tip: Separate your search with spaces e.g. /ssh pom.xml to search for src/ssh/pom.xml.
Tip: Use ↑ and ↓ arrow keys to navigate and return to view the file.
Tip: You can also navigate files with Ctrl+j (next) and Ctrl+k (previous) and view the file with Ctrl+o.
Tip: You can also navigate files with Alt+j (next) and Alt+k (previous) and view the file with Alt+o.