Пример #1
0
 def on_import_entities(self, event):
     if self.layer_selected is None:
         cjr.show_error_message("Please select a layer")
     else:
         importentity.importEntitiesFromFile(
             self, 
             self.get_id_for_selected_layer() 
             )
Пример #2
0
 def __on_import (self, event):
     imported_ok = importentity.importEntitiesFromFile(
                             self, 
                             cfg.DEFAULT_LAYER_ID
                             )
     if imported_ok:
         self.refresh_entity_browser()
Пример #3
0
 def on_import_entities(self, event):
     if self.layer_selected is None:
         cjr.show_error_message("Please select a layer")
     else:
         importentity.importEntitiesFromFile(
             self, self.get_id_for_selected_layer())