Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
ewoksorange
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Jira
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
workflow
ewoks
ewoksorange
Merge requests
!123
silx does not build on python 3.6
Code
Review changes
Check out branch
Download
Patches
Plain diff
Merged
silx does not build on python 3.6
py3.6
into
main
Overview
0
Commits
3
Pipelines
3
Changes
2
Merged
Wout De Nolf
requested to merge
py3.6
into
main
1 year ago
Overview
0
Commits
3
Pipelines
3
Changes
2
Expand
0
0
Merge request reports
Compare
main
version 2
36cd70e9
1 year ago
version 1
39d1bd3f
1 year ago
main (base)
and
latest version
latest version
7f727b2e
3 commits,
1 year ago
version 2
36cd70e9
2 commits,
1 year ago
version 1
39d1bd3f
1 commit,
1 year ago
2 files
+
28
−
13
Inline
Compare changes
Side-by-side
Inline
Show whitespace changes
Show one file at a time
Files
2
Search (e.g. *.vue) (Ctrl+P)
src/ewoksorange/canvas/handler.py
+
15
−
0
Options
import
os
import
time
import
logging
from
AnyQt.QtCore
import
Qt
@@ -15,6 +16,11 @@ if ORANGE_VERSION == ORANGE_VERSION.oasys_fork:
def
show_scheme_properties_for
(
self
,
scheme
,
window_title
=
None
):
return
QDialog
.
Accepted
try
:
from
oasys.canvas.mainwindow
import
MainWindowRegistry
except
ImportError
:
MainWindowRegistry
=
None
else
:
from
orangecanvas.registry
import
set_global_registry
from
orangecanvas.registry.qt
import
QtWidgetRegistry
@@ -79,6 +85,15 @@ class OrangeCanvasHandler:
canvas
=
MainWindow
()
canvas
.
setAttribute
(
Qt
.
WA_DeleteOnClose
)
canvas
.
set_widget_registry
(
widget_registry
)
# makes a copy of the registry
if
(
ORANGE_VERSION
==
ORANGE_VERSION
.
oasys_fork
and
MainWindowRegistry
is
not
None
):
MainWindowRegistry
.
Instance
().
register_instance
(
instance
=
canvas
,
application_name
=
str
(
os
.
getpid
())
)
# need it for finding the canvas from the widgets
self
.
canvas
=
canvas
self
.
process_events
()
Loading