Sorry for the late replay. In the previous days I'm busy working on
developing new features for several projects in my work.
Currently the issue is bypassed by projective the coordinate by manually.
The relative codes are here:
def __draw(self, diffinfo):
wx.GetApp().Yield(True)
canvas = self.__canvas
canvas.ClearAll()
self.__rects = rects = []
x0, y0 = self.CanvasOrigin
rect_width = self.CanvasWidth / diffinfo.TotalDiff
rect_height = self.CanvasHeight / 2
for i in xrange(diffinfo.TotalDiff):
up_rect = Rectangle((x0 + i * rect_width, 0),
(rect_width, rect_height),
LineColor=colors0[i],
FillColor=colors0[i])
down_rect = Rectangle((x0 + i * rect_width, -y0),
(rect_width, rect_height),
LineColor=colors1[i],
FillColor=colors1[i])
rects.append(up_rect)
rects.append(down_rect)
I will try and learn your code samples. Thank your again! :)
--
View this message in context:
http://wxpython-users.1045709.n5.nabble.com/How-to-change-the-default-orgin-of-the-FloatCanvas-to-top-left-corner-tp5719338p5719378.html