Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[ENH] Separate canvas and base widget #3772

Merged
merged 52 commits into from
Jun 28, 2019
Merged
Changes from 1 commit
Commits
Show all changes
52 commits
Select commit Hold shift + click to select a range
9de93a0
Remove use of NSURL
ales-erjavec May 23, 2019
031c8cd
Remove scripts/patches
ales-erjavec May 23, 2019
38ab3fb
Move workflows up a level
ales-erjavec May 23, 2019
27c629e
Remove canvas package
ales-erjavec May 23, 2019
5d4e2c7
Use canvas from the orange-canvas-core package
ales-erjavec May 23, 2019
0a159bb
widgets: Remove/change imports from canvas namespace
ales-erjavec May 23, 2019
4083524
tests: Fix discovery in test_widgets_outputs.py
ales-erjavec May 23, 2019
40b5a28
tests: Fix test_workflows
ales-erjavec May 23, 2019
92ed447
Fix imports in create_widget_catalog.py
ales-erjavec May 23, 2019
aa4f760
widgetsscheme: Cleanup
ales-erjavec May 23, 2019
a015643
WidgetManager: Add extra node action to print settings
ales-erjavec May 23, 2019
a67db2d
OWWidgetScheme: Allow errors to propagate up from create_widget_instance
ales-erjavec May 23, 2019
b62deed
OWSignalManager: Remove Initializing from the states that are blocking
ales-erjavec May 23, 2019
90d31e6
WidgetManager: Handle cases where the widget instance is not available
ales-erjavec May 23, 2019
5d758a6
WidgetManager: Fix item tracking during deletion
ales-erjavec May 23, 2019
b351b25
owreport: Fix report's save/restore workflow
ales-erjavec May 23, 2019
a066dbd
report: Show an error message when WebviewWidget is missing
ales-erjavec May 23, 2019
4e2c6d8
Subclass CanvasMainWindow and add report related actions
ales-erjavec May 23, 2019
e3453c1
mainwindow: Add back clear widget settings action
ales-erjavec May 23, 2019
a41a4c4
mainwindow: Add back ask_save_report
ales-erjavec May 23, 2019
8be2120
Use base OWWidget from a separated orange-widget-base project
ales-erjavec May 23, 2019
c45922c
report: Use report from base extend to add data related methods
ales-erjavec May 23, 2019
dacd72c
utils/webview: Use webview from base
ales-erjavec May 23, 2019
9794b07
gui: Use gui from base
ales-erjavec May 23, 2019
44f1976
tests/base: Use base GuiTest and WidgetTest
ales-erjavec May 23, 2019
2d640d5
widgets/io: Import all from base
ales-erjavec May 23, 2019
c725893
utils/buttons: Import from base
ales-erjavec May 23, 2019
448c609
utils/combobox: Import from base
ales-erjavec May 23, 2019
04a169c
utils/progressbar: Import from base
ales-erjavec May 23, 2019
77abf96
utils/concurrent: Import from base
ales-erjavec May 23, 2019
aa0f4f3
utils/itemmodels: Import from base
ales-erjavec May 23, 2019
9be2afb
utils/matplotlib_export: Import from base
ales-erjavec May 23, 2019
bca1f96
utils/SVGExporter: Import from base
ales-erjavec May 23, 2019
9aaa19b
utils/PDFExporter: Import from base
ales-erjavec May 23, 2019
d23e4bb
utils/widgetpreview: Import from base
ales-erjavec May 23, 2019
3f1e9a2
utils/overlay: Import from base
ales-erjavec May 23, 2019
93cdee3
utils/overlay: Import proxydoc for backward compatibility
ales-erjavec May 23, 2019
016b71d
utils/filedialogs: Import from base
ales-erjavec May 23, 2019
4a0d2a6
utils/saveplot: Import from base
ales-erjavec May 23, 2019
cb057c5
Remove unused widget icon resources
ales-erjavec May 23, 2019
05767c9
Raise a deprecation warning in Orange.data.io.FileFormat.img_writers
ales-erjavec May 23, 2019
b28e912
canvas/main: Cleanup/import utils from orangecanvas
ales-erjavec May 23, 2019
7c72232
canvas/main: Use mainwindow from orangewidget
ales-erjavec May 23, 2019
4be35b3
canvas/main: Move state modification/setup to main
ales-erjavec May 23, 2019
6c96a57
main: Cleanup and improve logging config
ales-erjavec May 23, 2019
a8342b8
canvas: Remove most of the 'canvas' implementation left
ales-erjavec May 23, 2019
c79d582
Update MANIFEST.in
ales-erjavec May 23, 2019
4998dcb
docs: Add intersphinx mappings
ales-erjavec May 23, 2019
5f78d1e
progressbar: Warn on deprecated processEvents usage
ales-erjavec May 30, 2019
4b6fbcf
canvas/main: Close redirection handlers on exit
ales-erjavec Jun 7, 2019
47945fb
Merge branch 'master' into orange-widget-base-rebase
ales-erjavec Jun 17, 2019
db50b84
owreport: Import ReportItem for back-compatibility
ales-erjavec Jun 26, 2019
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
tests: Fix discovery in test_widgets_outputs.py
  • Loading branch information
ales-erjavec committed May 30, 2019
commit 408352492c982bd02c2a1027283b89cda59ca401
9 changes: 6 additions & 3 deletions Orange/widgets/tests/test_widgets_outputs.py
Original file line number Diff line number Diff line change
@@ -1,16 +1,19 @@
import itertools
import re
import unittest
import importlib.util

from Orange.canvas.registry import global_registry
from orangecanvas.registry import WidgetRegistry
from Orange.canvas.config import Config


class TestWidgetOutputs(unittest.TestCase):
def test_outputs(self):
re_send = re.compile('\\n\s+self.send\("([^"]*)"')
registry = global_registry()
disc = Config.widget_discovery(WidgetRegistry())
disc.run(itertools.islice(Config.widgets_entry_points(), 0, 1))
errors = []
for desc in registry.widgets():
for desc in disc.registry.widgets():
signal_names = {output.name for output in desc.outputs}
module_name, class_name = desc.qualified_name.rsplit(".", 1)
fname = importlib.util.find_spec(module_name).origin
Expand Down