def poly_changed(self, poly): """ Changed Polygon """ # this method is called whenever the polygon object is called # only copy the artist props to the line (except visibility) vis = self.line.get_visible() Artist.update_from(self.line, poly) self.line.set_visible(vis) # don't use the poly visibility state
def poly_changed(self, controlpoly, curve_r): vis = self.line_poly.get_visible() Artist.update_from(self.line_poly, controlpoly) self.line_poly.set_visible(vis) vis = self.line_r.get_visible() Artist.update_from(self.line_r, curve_r) self.line_r.set_visible(vis) return
def poly_changed(self, poly): 'this method is called whenever the polygon object is called' # only copy the artist props to the line (except visibility) #plt.cla() vis = self.line.get_visible() Artist.update_from(self.line, poly) self.line.set_visible(vis) # don't use the poly visibility state #os.system('rm -f updated_model') '''
def points_changed(self, points): """This method is called whenever the points object is called.""" # Only copy the artist props to the line (except visibility). vis = self.line.get_visible() Artist.update_from(self.line, points) # Don't use the points visibility state. self.line.set_visible(vis) if self.verbose: print("\nPoints modified.")
def poly_changed(self, poly): """ Polygon changed. Parameters ---------- poly : TYPE DESCRIPTION. Returns ------- None. """ # this method is called whenever the polygon object is called # only copy the artist props to the line (except visibility) vis = self.line.get_visible() Artist.update_from(self.line, poly) self.line.set_visible(vis) # don't use the poly visibility state
def poly_changed(self, poly): 'this method is called whenever the polygon object is called' vis = self.line.get_visible() Artist.update_from(self.line, poly) self.line.set_visible(vis)
def rectangle_changed(self, rect): 'this method is called whenever the polygon object is called' # only copy the artist props to the line (except visibility) vis = self.line.get_visible() Artist.update_from(self.line, rect) self.line.set_visible(vis)
def poly_changed(self, poly): vis = self.line.get_visible() Artist.update_from(self.line, poly) self.line.set_visible(vis)
def polygon_changed(self, poly): """ redraws the polygon """ vis = self.line.get_visible() Artist.update_from(self.line, poly) self.line.set_visible(vis)
def poly_changed(self, poly): 'this method is called whenever the polygon object is called' vis = self.line.get_visible() Artist.update_from(self.line, poly) self.line.set_visible(vis) # don't use the poly visibility state
def poly_changed(self, poly): 'metode ini akan dipanggil ketika objek polygon sudah dipanggil' #hanya salinan hasil pada garis (kecuali bentuk nyata) vis = self.line.get_visible() Artist.update_from(self.line, poly) self.line.set_visible(vis) #jangan menggunakan daerah pola yang nyata
def line_changed(self, line): vis = self.line.get_visible() Artist.update_from(self.line, line) self.line.set_visible(vis)