Notice: This forum has been recovered from an old backup, so some content, links, and dates may be outdated. The forum is currently read-only while we restore sign-in and registration functionality. Details

If you find this forum valuable and would like to help keep it online, donations to help cover hosting and domain costs are greatly appreciated, but never expected. You can support the forum through Buy Me a Coffee or Ko-fi. Thank you for helping preserve the EventGhost community.

SerialPortChoice

If you have a question or need help, this is the place to be.
Post Reply
thug
Plugin Developer
Posts: 64
Joined: Sat Jul 22, 2006 2:37 pm
Location: Australia

SerialPortChoice

Post by thug »

I think this maybe a python related question so please don't slap me... :\

I am using the lines

Code: Select all

portCtrl = eg.SerialPortChoice(dialog, value=port)
Add(portCtrl, (1, 1), flag=0)
in my plugin's 'Configure' dialog (I think portCtrl is a dropdown list).

What i want to do it add some more items to portCtrl's dropdown list.
so no doubt i would have to interagate portCtrl somehow to append or insert items it it's list.

how?
User avatar
Bitmonster
Site Admin
Posts: 2239
Joined: Mon Feb 06, 2006 10:28 pm

Re: SerialPortChoice

Post by Bitmonster »

Look at the code in SerialPortChoice.py and enhance it to your needs by building your own class. It is simply based on wxChoice.
Please post software-related questions in the forum - PMs will only be answered, if really private, thanks!
Post Reply