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
15dc4b42
Commit
15dc4b42
authored
4 years ago
by
Jdrezen
Browse files
Options
Downloads
Patches
Plain Diff
Fix du problème de fermeture de la fenetre avec un try-catch
parent
994ddfcb
No related branches found
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
pyAmakIHM/classes/controleur.py
+7
-4
7 additions, 4 deletions
pyAmakIHM/classes/controleur.py
pyAmakIHM/classes/fenetre.py
+2
-1
2 additions, 1 deletion
pyAmakIHM/classes/fenetre.py
with
9 additions
and
5 deletions
pyAmakIHM/classes/controleur.py
+
7
−
4
View file @
15dc4b42
...
...
@@ -187,7 +187,13 @@ class Controleur:
self
.
__is_run
=
True
self
.
__amas
.
put_token
()
def
updateCycle
(
self
,
value
)
->
None
:
def
updateCycle
(
self
,
env
,
amas
)
->
None
:
try
:
self
.
updateWindow
(
env
,
amas
)
except
:
return
def
updateWindow
(
env
,
amas
):
pass
def
initialisation
(
self
):
...
...
@@ -200,7 +206,4 @@ class Controleur:
self
.
__fenetre
.
display
()
def
updateClosing
(
self
):
print
(
"
Debut dans le controleur
"
)
self
.
__amas
.
exit_program
()
print
(
"
Attente de l
'
amas
"
)
#self.__th.join()
This diff is collapsed.
Click to expand it.
pyAmakIHM/classes/fenetre.py
+
2
−
1
View file @
15dc4b42
...
...
@@ -218,8 +218,9 @@ class Fenetre :
def
on_closing
(
self
):
self
.
__observer
.
updateClosing
()
for
pan
in
self
.
__panelGraphiques
:
pan
.
quit
()
self
.
__root
.
quit
()
print
(
'
fin
'
)
"""
Run the window application
...
...
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