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
8d9b44c8
Commit
8d9b44c8
authored
4 years ago
by
Jdrezen
Browse files
Options
Downloads
Patches
Plain Diff
Ajout d'une classe PanelLimitedPlotChart
parent
54bb5658
No related branches found
No related tags found
No related merge requests found
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
pyAmakIHM/classes/controleur.py
+3
-0
3 additions, 0 deletions
pyAmakIHM/classes/controleur.py
pyAmakIHM/classes/fenetre.py
+10
-0
10 additions, 0 deletions
pyAmakIHM/classes/fenetre.py
pyAmakIHM/classes/panelLimitedPlotChart.py
+38
-0
38 additions, 0 deletions
pyAmakIHM/classes/panelLimitedPlotChart.py
with
51 additions
and
0 deletions
pyAmakIHM/classes/controleur.py
+
3
−
0
View file @
8d9b44c8
...
@@ -124,6 +124,9 @@ class Controleur:
...
@@ -124,6 +124,9 @@ class Controleur:
def
addPlotChart
(
self
,
name
:
str
)
->
int
:
def
addPlotChart
(
self
,
name
:
str
)
->
int
:
return
self
.
__fenetre
.
addPlotChart
(
name
)
return
self
.
__fenetre
.
addPlotChart
(
name
)
def
addLimitedPlotChart
(
self
,
name
:
str
,
limit
)
->
int
:
return
self
.
__fenetre
.
addLimitedPlotChart
(
name
,
limit
)
"""
"""
Set the drawing policy to the curve of the plot chart identified by idCurve and id
Set the drawing policy to the curve of the plot chart identified by idCurve and id
"""
"""
...
...
This diff is collapsed.
Click to expand it.
pyAmakIHM/classes/fenetre.py
+
10
−
0
View file @
8d9b44c8
...
@@ -11,6 +11,7 @@ from pyAmakIHM.classes.panelCommandes import PanelCommandes
...
@@ -11,6 +11,7 @@ from pyAmakIHM.classes.panelCommandes import PanelCommandes
from
pyAmakIHM.classes.panelVue
import
PanelVue
from
pyAmakIHM.classes.panelVue
import
PanelVue
from
pyAmakIHM.classes.panelBarChart
import
PanelBarChart
from
pyAmakIHM.classes.panelBarChart
import
PanelBarChart
from
pyAmakIHM.classes.panelPlotChart
import
PanelPlotChart
from
pyAmakIHM.classes.panelPlotChart
import
PanelPlotChart
from
pyAmakIHM.classes.panelLimitedPlotChart
import
PanelLimitedPlotChart
from
tkinter
import
ttk
,
Tk
from
tkinter
import
ttk
,
Tk
...
@@ -163,6 +164,15 @@ class Fenetre :
...
@@ -163,6 +164,15 @@ class Fenetre :
self
.
__onglet
.
add
(
self
.
__panelGraphiques
[
length
],
text
=
name
)
self
.
__onglet
.
add
(
self
.
__panelGraphiques
[
length
],
text
=
name
)
return
(
length
)
return
(
length
)
def
addLimitedPlotChart
(
self
,
name
:
str
,
limit
)
->
int
:
length
=
len
(
self
.
__panelGraphiques
)
self
.
__panelGraphiques
.
append
(
PanelLimitedPlotChart
(
self
.
__onglet
,
length
,
limit
))
self
.
__panelGraphiques
[
length
].
attach
(
self
)
self
.
__onglet
.
add
(
self
.
__panelGraphiques
[
length
],
text
=
name
)
return
(
length
)
"""
"""
Set the drawing policy to the curve of the plot chart identified by idCurve and id
Set the drawing policy to the curve of the plot chart identified by idCurve and id
"""
"""
...
...
This diff is collapsed.
Click to expand it.
pyAmakIHM/classes/panelLimitedPlotChart.py
0 → 100644
+
38
−
0
View file @
8d9b44c8
"""
Class PanelLimitedPlotChart
"""
from
pyAmakIHM.classes.panelPlotChart
import
PanelPlotChart
class
PanelLimitedPlotChart
(
PanelPlotChart
):
"""
Class PanelLimitedPlotChart
"""
def
__init__
(
self
,
root
,
id
,
limit
)
:
super
().
__init__
(
root
,
id
)
self
.
__limit
=
limit
self
.
__limited
=
False
def
addPoint
(
self
,
id
:
int
,
x
:
int
,
y
:
int
):
self
.
__axis
.
clear
()
self
.
__xAxis
[
id
].
append
(
x
)
self
.
__yAxis
[
id
].
append
(
y
)
if
(
self
.
__limited
):
del
self
.
__xAxis
[
0
]
del
self
.
__yAxis
[
0
]
else
:
self
.
__limited
=
self
.
isLimited
()
self
.
__rebuild
()
def
isLimited
(
self
):
return
len
(
self
.
__xAxis
)
>
self
.
__limit
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