Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Florestan Biaux
Messenger Statistics
Commits
69066e25
Commit
69066e25
authored
Jul 27, 2021
by
Florestan Biaux
💬
Browse files
ajout tkinter et test affichage graphique
parent
90f4cf28
Changes
2
Hide whitespace changes
Inline
Side-by-side
main.py
View file @
69066e25
import
tri
import
get
import
users
import
json
import
decode
import
stats
import
os
from
tkinter
import
Tk
if
__name__
==
"__main__"
:
root
=
Tk
()
root
.
mainloop
()
# demander le nom de la conv à analyser
originpath
=
os
.
getcwd
()
name
=
'.'
...
...
stats.py
View file @
69066e25
...
...
@@ -87,7 +87,7 @@ def countwords(data):
message
=
message
.
replace
(
"’"
,
" "
)
if
(
"a rejoint la discussion"
not
in
message
)
and
(
"a rejoint l appel"
not
in
message
)
and
(
"la discussion vidéo est terminée"
):
for
word
in
message
.
split
():
if
len
(
word
)
>
3
:
if
len
(
word
)
>
4
:
if
word
in
count_words
:
count_words
[
word
]
+=
1
else
:
...
...
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