Ejemplo n.º 1
0
 def create_mission_widget_item(self):
     item = mission_widget.Mission_Widget_Item(
         rc=self.rc,
         area_name=self.area_name,
         parent=self.rc.mission_widget,
         type_='route_simulate',
         binding_object=self)
     item.setExpanded(True)
     return item
Ejemplo n.º 2
0
 def create_points_rubber_band(self, name, points, color, width,
                               line_style):
     rubber_band = self.rc.gis_canvas.show_temp_points_from_points_list(
         points, 'EPSG:4326', color=color, width=width)
     rubber_band.name = name
     self.rubber_bands.append(rubber_band)
     item = mission_widget.Mission_Widget_Item(
         rc=self.rc,
         area_name=self.area.name,
         parent=self.mission_widget_item,
         type_='geometry',
         binding_object=rubber_band)
     self.son_mission_widget_items.append(item)