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.

Where to find Object & Command reference?

Do you have questions about writing plugins or scripts in Python? Meet the coders here.
Post Reply
jwka
Posts: 24
Joined: Sun Nov 28, 2010 8:45 pm

Where to find Object & Command reference?

Post by jwka »

I have read (I guess) all pages of the EventGhost Website.

Since not being too familiar with Object oriented programming and Python, I would love to find some more in depth reference and manuals for the programming capabilities of the Python Scripts, especially for the eg.Objects.

I.e.:
- what Properties and (especially) Methods does the eg.GLOBALS have?

Is there any kind of reference guide (a bit more than this: http://www.eventghost.org/docs/eg/index.html)

Thanks!
jwka
stottle
Plugin Developer
Posts: 636
Joined: Sun Apr 26, 2009 10:59 pm

Re: Where to find Object & Command reference?

Post by stottle »

eg.globals is just an instance of a convenience class for holding variables/objects. There aren't any properties or methods besides those that are part of python

Code: Select all

object
class. If you open up the python shell, you can do interesting things like

Code: Select all

type(eg.globals)
dir(eg.globals)
Since there isn't a lot of additional documentation, I would recommend using an editor like notepad++, which allows you to search for strings in any of the eg *.py files, plus the python shell.

Brett
stottle
Plugin Developer
Posts: 636
Joined: Sun Apr 26, 2009 10:59 pm

Re: Where to find Object & Command reference?

Post by stottle »

The above is for generic questions - good idea to learn to fish, so to speak. If you have specific questions, feel free to post.

Brett
jwka
Posts: 24
Joined: Sun Nov 28, 2010 8:45 pm

Re: Where to find Object & Command reference?

Post by jwka »

ok. will try out the "fishing" aspect ... I just wodered if there is a more EG specific "Languale / Module Reference" where I could read the valid methos and attributes supplied by EG in general.

Thanks
jwka
Post Reply