thiagoralves / OpenPLC_Editor

OpenPLC Editor - IDE capable of creating programs for the OpenPLC Runtime
GNU General Public License v2.0
429 stars 207 forks source link

Add com port descriptions to Arduino Upload dialog #74

Closed AdamCummick closed 1 year ago

AdamCummick commented 1 year ago

Adds device description alongside COM port numbers on the Arduino Upload dialog page

image

I attempted to get it to refresh whenever the combo is opened, but I didn't have any luck getting the list to refresh after being created. Any advice on that is appreciated!

thiagoralves commented 1 year ago

Just to finally provide an answer to this, it wasn't refreshing because every wx.EVENT must be attached to a function with an argument. Your reloadComboChoices only had self as argument which is required for a class method, but didn't provide the event argument. I've fixed this on my latest commit.