Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5

IconSet Example

#1
There is a good chance that I am misunderstanding what the "IconSet" command does.  I am hoping that it will change the icon next to the instruction in the station.  Like this...
   

I have tried this command:
Code:
currentProg.Instruction(n).setParam('IconSet', "C:/images/LargeNext.png")


Do I need to resize the icon?  I attached the file.  I was hoping that Qt would handle the scaling.

Thanks for your help,
Henry


Attached Files Thumbnail(s)
LargeNext.png   
#2
IconSet applies to custom/generic nodes only, not instructions. These custom/generic nodes must be added using "AddItem". Example: RDK.Command("AddItem", "item name").

Instead, if you want to show a custom icon to a custom instruction you should use customInstruction on a program to add an instruction with a custom command, icon, etc:
https://robodk.com/doc/en/PythonAPI/robo...nstruction
  




Users browsing this thread:
2 Guest(s)