Пример #1
0
    def cb_add(self, *args):
        parent_window = self.get_parent_window()
        # print parent_window
        coordinates = edit_coordinates(description="Please enter the coordinates\nfor the marker to be added")
        if coordinates == None:
            return
        x, y, z = coordinates
        marker = Marker(xyz=(x, y, z), rgb=EventHandler().get_default_color(), radius=shared.ratio * 3)

        EventHandler().add_marker(marker)
Пример #2
0
 def cb_edit_position(self, *args):
     marker = self.__get_selected_marker()
     x_old, y_old, z_old = marker.get_center()
     # parent_window = self.get_parent_window()
     # print parent_window
     coordinates = edit_coordinates(x_old, y_old, z_old)
     if coordinates == None:
         return
     x, y, z = coordinates
     EventHandler().notify("move marker", marker, (x, y, z))
     self.treev_sel_changed(self._treev_sel)