Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
O
Oceano2python
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
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
US191
Oceano2python
Commits
886f7cbc
Commit
886f7cbc
authored
6 years ago
by
jacques.grelet_ird.fr
Browse files
Options
Downloads
Patches
Plain Diff
improve GUI
parent
4fa5b00a
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
oceano.py
+8
-3
8 additions, 3 deletions
oceano.py
with
8 additions
and
3 deletions
oceano.py
+
8
−
3
View file @
886f7cbc
...
...
@@ -64,7 +64,7 @@ if __name__ == "__main__":
keys
=
cfg
[
'
split
'
][
'
ctd
'
].
keys
()
# test arguements from sys.argv, args is never to None with default option set
if
args
.
gui
or
args
.
debug
or
len
(
sys
.
argv
)
==
1
:
if
args
.
gui
or
len
(
sys
.
argv
)
==
1
:
# change look and feel color scheme
sg
.
ChangeLookAndFeel
(
'
SandyBeach
'
)
...
...
@@ -81,6 +81,11 @@ if __name__ == "__main__":
window
.
LoadFromDisk
(
configfile
)
# display the main windows
event
,
values
=
window
.
Read
()
# if user close the windows
if
event
==
None
:
raise
SystemExit
(
"
Cancelling: user exit
"
)
# save program configuration
window
.
SaveToDisk
(
configfile
)
...
...
@@ -107,9 +112,9 @@ if __name__ == "__main__":
fe
,
n
,
m
=
process
(
args
,
cfg
,
'
ctd
'
)
# display result in popup GUI
dims
=
"
Dimensions: {} x {}
"
.
format
(
m
,
n
)
dims
=
"
Dimensions: {} x {}
"
.
format
(
n
,
m
)
sg
.
PopupScrolled
(
'
Oceano2python
'
,
dims
,
fe
.
disp
(
args
.
key
),
size
=
(
5
0
,
6
0
))
fe
.
disp
(
args
.
key
),
size
=
(
8
0
,
4
0
))
else
:
# in command line mode (console)
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment