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.

Check if eventghost needs to be saved

If you have a question or need help, this is the place to be.
Post Reply
cfull1
Experienced User
Posts: 124
Joined: Thu Aug 19, 2010 4:52 am

Check if eventghost needs to be saved

Post by cfull1 »

Is there a way to check if eventghost needs to be saved for a python script?
I found eg.document.Save() in another thread

EDIT:
Tried calling CheckFileNeedsSave(), returned wx.ID_OK fine but froze up trying to display the save dialog.
Made a GetIsDirty() method, which just returns isDirty value.
User avatar
Pako
Plugin Developer
Posts: 2294
Joined: Sat Nov 11, 2006 1:31 pm
Location: Czech Republic
Contact:

Re: Check if eventghost needs to be saved

Post by Pako »

It's simple.
Variable eg.document.isDirty takes either True or False.

Pako
cfull1
Experienced User
Posts: 124
Joined: Thu Aug 19, 2010 4:52 am

Re: Check if eventghost needs to be saved

Post by cfull1 »

Even better, Thanks Pako!
Post Reply