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
3270f60e
Commit
3270f60e
authored
4 years ago
by
Jdrezen
Browse files
Options
Downloads
Patches
Plain Diff
Suppression d'un scrollBar et fix des méthodes d'affichages
parent
6cace0c7
Branches
Branches containing commit
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
pyAmakIHM/classes/fenetre.py
+3
-15
3 additions, 15 deletions
pyAmakIHM/classes/fenetre.py
pyAmakIHM/classes/panelLogs.py
+0
-3
0 additions, 3 deletions
pyAmakIHM/classes/panelLogs.py
with
3 additions
and
18 deletions
pyAmakIHM/classes/fenetre.py
+
3
−
15
View file @
3270f60e
...
...
@@ -55,7 +55,7 @@ class Fenetre :
self
.
__onglet
.
add
(
self
.
__panelVue
,
text
=
"
Vue
"
)
self
.
__panel_log
=
PanelLogs
(
self
.
__division
)
self
.
__division
.
add
(
self
.
__onglet
)
self
.
__division
.
add
(
self
.
__panel_log
)
...
...
@@ -305,20 +305,8 @@ class Fenetre :
Displaying logs on the screen
"""
def
errorDisplay
(
self
,
typeError
:
str
,
message
:
str
)
->
None
:
if
(
typeError
!=
""
)
and
(
message
!=
""
):
self
.
__panel_log
.
logsDisplay
(
typeError
+
"
:
"
+
message
)
elif
typeError
==
""
:
self
.
__panel_log
.
logsDisplay
(
message
)
elif
typeError
==
""
:
self
.
__panel_log
.
logsDisplay
(
typeError
)
self
.
__panel_log
.
logsDisplay
(
"
Erreur :
"
+
typeError
+
"
,
"
+
"
:
"
+
message
)
else
:
print
(
"
Empty string for typeError and message : at least one of them must not be empty
\n
"
)
def
logsDisplay
(
self
,
message
:
str
)
->
None
:
if
message
==
""
:
print
(
"
The message you want to print is empty.
\n
"
)
else
:
self
.
__panel_log
.
logsDisplay
(
message
)
self
.
__panel_log
.
logsDisplay
(
message
)
This diff is collapsed.
Click to expand it.
pyAmakIHM/classes/panelLogs.py
+
0
−
3
View file @
3270f60e
...
...
@@ -35,13 +35,10 @@ class PanelLogs(Text):
put scrollbars in the text place
"""
self
.
__affichageScroll
=
Scrollbar
(
self
.
__affichage
,
orient
=
"
vertical
"
,
command
=
self
.
__affichage
.
yview
)
self
.
__affichageScroll2
=
Scrollbar
(
self
.
__affichage
,
orient
=
"
horizontal
"
,
command
=
self
.
__affichage
.
xview
)
self
.
__affichage
.
configure
(
yscrollcommand
=
self
.
__affichageScroll
.
set
)
self
.
__affichage
.
configure
(
yscrollcommand
=
self
.
__affichageScroll2
.
set
)
self
.
__affichageScroll
.
pack
(
side
=
'
right
'
,
fill
=
'
y
'
)
self
.
__affichageScroll2
.
pack
(
side
=
'
bottom
'
,
fill
=
'
x
'
)
"""
return the logs place
...
...
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