Example #1
0
 def rename_layer(self):
     layer = self.get_selected_layer()
     txt = edit_dlg(self.app.mw, _('Rename layer'), layer.name)
     if txt is not None and not layer.name == txt:
         self.app.current_doc.api.set_layer_name(layer, txt)
Example #2
0
	def rename_layer(self):
		layer = self.get_selected_layer()
		txt = edit_dlg(self.app.mw, _('Rename layer'), layer.name)
		if not txt is None and not layer.name == txt:
			self.app.current_doc.api.set_layer_name(layer, txt)