Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
P
pyAmak - IHM
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
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
SMAC
AMAK
Python
PyAMAK
pyAmak - IHM
Commits
0e0de71e
Commit
0e0de71e
authored
4 years ago
by
Jdrezen
Browse files
Options
Downloads
Patches
Plain Diff
Ajout de test si le nom de fichier est vide pour la sauvegarde de l'état
parent
c057d7fe
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
pyAmakIHM/classes/controleur.py
+9
-6
9 additions, 6 deletions
pyAmakIHM/classes/controleur.py
with
9 additions
and
6 deletions
pyAmakIHM/classes/controleur.py
+
9
−
6
View file @
0e0de71e
...
...
@@ -235,11 +235,11 @@ class Controleur:
self
.
__scheduler
.
start
()
"""
Save the current state
Save the current state
in the given file
"""
def
updateSave
(
self
,
filename
:
str
)
->
None
:
if
not
(
filename
is
None
)
:
self
.
__scheduler
.
save
()
if
filename
!=
''
:
self
.
__scheduler
.
save
(
filename
)
def
updateCycle
(
self
)
->
None
:
try
:
...
...
@@ -247,14 +247,14 @@ class Controleur:
except
:
return
def
updateWindow
(
self
):
def
updateWindow
(
self
)
->
None
:
pass
def
initialisation
(
self
)
->
None
:
pass
"""
Launch the
amas
in a thread and display the window
Launch the
scheduler
in a thread and display the window
"""
def
start
(
self
)
->
None
:
self
.
initialisation
()
...
...
@@ -262,7 +262,10 @@ class Controleur:
self
.
__th
.
start
()
self
.
__fenetre
.
display
()
def
updateClosing
(
self
):
"""
Close the scheduler
"""
def
updateClosing
(
self
)
->
None
:
self
.
__scheduler
.
exit_program
()
...
...
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