Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
A
abdessamad-killian
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
3
Issues
3
List
Board
Labels
Milestones
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Open sidebar
isn-malraux-mini-projet
abdessamad-killian
Commits
fb305883
Commit
fb305883
authored
Jan 06, 2018
by
Abdessamad Akabli
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
- Fonction quitter_programme() rectification d'un problème.
parent
7f74f68d
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
10 deletions
+9
-10
Version_Beta.py
Version_Beta.py
+9
-10
No files found.
Version_Beta.py
View file @
fb305883
...
...
@@ -14,6 +14,7 @@ image = None
quitter
=
0
revenir_menu_principal
=
0
photo
=
None
root
=
None
#Fonction qui va chercher l'image et l'ouvrir ( Avec chemin d'accès absolu ou relatif )
def
ouvrir_image
():
...
...
@@ -250,14 +251,17 @@ def nettoyer_ecran():
#Fonction qui arrête le programme(Message d'arrêt)
def
quitter_programme
():
global
quitter
quitter
=
1
global
root
root
.
destroy
()
print
(
"Fin du programme, au revoir."
)
exit
#Fonction qui crée le menu et le structure (O,A,I,N,C,R,S,Q)
def
menu
():
global
root
root
=
tk
.
Tk
()
frame
=
tk
.
Frame
(
root
)
frame
.
pack
()
...
...
@@ -271,14 +275,9 @@ def menu():
tk
.
Button
(
root
,
text
=
"Effectuer une transformation symétrique de l'image"
,
command
=
symetrie_image
)
.
pack
()
tk
.
Button
(
root
,
text
=
"Effacer la console "
,
command
=
nettoyer_ecran
)
.
pack
()
tk
.
Button
(
root
,
text
=
"Sauvegarder l'image"
,
command
=
save
)
.
pack
()
tk
.
Button
(
root
,
text
=
"Quitter le programme"
,
fg
=
"red"
,
command
=
root
.
destroy
)
.
pack
()
tk
.
Button
(
root
,
text
=
"Quitter le programme"
,
fg
=
"red"
,
command
=
quitter_programme
)
.
pack
()
root
.
mainloop
()
while
quitter
==
0
:
if
__name__
==
"__main__"
:
menu
()
print
(
"Fin du programme, au revoir."
)
exit
\ No newline at end of file
if
__name__
==
"__main__"
:
menu
()
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