Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
Scientific Software
MDANSE
Commits
f7bdce1f
Commit
f7bdce1f
authored
Jul 25, 2018
by
eric pellegrini
Browse files
Added system option for displaying file filter widget on MacOS
parent
5059a1e2
Pipeline
#4235
passed with stages
in 16 minutes and 47 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
MDANSE/GUI/__init__.py
View file @
f7bdce1f
...
...
@@ -2,11 +2,17 @@ import glob
import
os
import
platform
import
wx
from
MDANSE
import
PLATFORM
from
MDANSE.Externals.pubsub
import
pub
as
PUBLISHER
# Hack for the (in)famous "(python:865): LIBDBUSMENU-GLIB-WARNING **: Trying to remove a child that doesn't believe we're it's parent."
if
platform
.
dist
()[
0
].
lower
()
==
"ubuntu"
:
os
.
environ
[
"UBUNTU_MENUPROXY"
]
=
"0"
if
PLATFORM
.
name
==
"macos"
:
wx
.
SystemOptions
.
SetOption
(
"osx.openfiledialog.always-show-types"
,
"1"
)
from
MDANSE
import
REGISTRY
from
MDANSE.GUI.Plugins.DataPlugin
import
DataPlugin
...
...
@@ -38,4 +44,4 @@ for data in REGISTRY["input_data"].values():
"label"
:
" "
.
join
(
""
.
split
(
"_"
)).
capitalize
(),
"ancestor"
:
[
'empty_data'
]}
kls
=
type
(
"%sPlugin"
%
data
.
__name__
,
(
DataPlugin
,),
attrs
)
REGISTRY
[
data
.
_type
]
=
kls
\ No newline at end of file
REGISTRY
[
data
.
_type
]
=
kls
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment