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.

Coding help please :)

Do you have questions about writing plugins or scripts in Python? Meet the coders here.
Post Reply
User avatar
Livin
Experienced User
Posts: 792
Joined: Wed Oct 08, 2008 4:56 am

Coding help please :)

Post by Livin »

I have all all my code done with ASP (vbscript) but I want to port to python and create a plugin for EG.
I have a few functions I'm hoping some of the python gurus here can help with.

Thx in advance!


1) create an array (or dictionary?) from a query (I have the code to do the query)
- the query will pull in objects, not just text so I need to store all object with properties.
- # and size of objects, and properties, will vary and there can be hundreds of objects.

2) using the above array, populate a wxCombobox

3) display the Combobox on the panel for the user to choose the object needed.

In vbs I do this for #1
set devices = hs.GetDeviceEnumerator
If IsObject(devices) Then 'checks to ensure it is an object before adding to array
Do While not devices.Finished
Set dev = devices.GetNext
setup... XBMC, W7MC for DVR & Live OTA TV, JRMC for multi-zone audio, EG, MiCasaVerde Vera3, USB-UIRT IR receiver, Harmony remote, 5.2 home theater system
Post Reply