|
451 | 451 | aboutframe.option_add("*Font", default_font) |
452 | 452 | abouttext = tk.Text(aboutframe, wrap=tk.WORD, borderwidth=2) |
453 | 453 |
|
454 | | -abouttext.insert(tk.END,"\nSCADA Animation GUI Editor eXtension. Based on ECAVA/IntegraXor SCADA system.") |
| 454 | +abouttext.insert(tk.END,"\nSCADA Animation Editor extension for JSON-SCADA. Based on ECAVA/IntegraXor extension.") |
455 | 455 | #endregion |
456 | 456 |
|
457 | 457 | animations = [ 'ttr":"bar"','ttr":"clone"','ttr":"color"','ttr":"opac"',\ |
|
463 | 463 |
|
464 | 464 | class SAGEX(inkex.EffectExtension): |
465 | 465 | def effect(self): |
| 466 | + if len(self.options.ids) > 1: |
| 467 | + # messagebox.showinfo("Error","Select just one element then open the SCADA extension. Hit ESC when done.") |
| 468 | + on_closing() |
| 469 | + return |
| 470 | + |
466 | 471 | if len(self.options.ids) == 0: |
467 | 472 | # object_id_label.configure(state=tk.DISABLED) |
468 | 473 | # object_id_entry.configure(state=tk.DISABLED) |
469 | | - message = ' "Usage: Please select the desired element(s) then open SAGEX for SCADA animation".' |
| 474 | + message = 'Select just one element then open the SCADA extension. Hit ESC when done."' |
470 | 475 | object_id_entry.delete(0,'end') |
471 | 476 | object_id_entry.insert(0,message) |
472 | 477 | object_id_entry.configure(fg='red') |
473 | 478 |
|
474 | 479 | for t in range(len(tabControl.tabs())): |
475 | 480 | tabControl.tab(t,state=tk.DISABLED) |
| 481 | + return |
476 | 482 |
|
477 | 483 | for node in self.svg.selected: |
478 | 484 | attr_id = node.attrib['id'] |
|
0 commit comments