python - using Kivy Garden Graph in KV language -
how use kivy module garden.graph
inside kv file? found documentation explained how use in main python script.
i imported kivy.garden.graph
in python file, , can add graph
inside kv file, didn't find documentation how set size, plots etc.
graph: id: graph_test plot: meshlineplot
this gives error since meshlineplot not defined
, though imported on python side.
any highly appreciated, maybe add info graph's github readme well.
had same problem. here's solution:
generally, according kivy documentation, in kv file:
#:import name x.y.z
is equivalent to:
from x.y import z name
so should use following:
#:import meshlineplot kivy.garden.graph.meshlineplot
worked in case graph class but, honest, didn't managed add plot graph yet.
Comments
Post a Comment