many lines , points possible able track when line/point has been moused over. there short codeable way of doing or half come hundreds/thousands of different element names.
i've tried
self.z[0].canvas.create_line() self.z[1].canvas.create_line()
as as
self.z(0).canvas.create_line() self.z(1).canvas.create_line()
to error saying z can't integer, aka can't stupid:)
is there anyway set nice loop , create lines/points , able test test them once created. can test points way want able test them easier way of creating lines/points.
worst case scenario there way of setting like
self.z1.canvas self.z2.canvas self.z3.canvas
but have 1,2,3 each able increased through loop? i'm not sure if have ever seen i'm suggesting made mention of or not.
every time create item on canvas, returns unique id. can store id in list.
self.lines = [] x in range(1000): item = self.canvas.create_line(...) self.lines.append(item)
that being said, don't need keep of these in array " track when line/point has been moused over.". can set bindings that.
Comments
Post a Comment