On Tue, Jun 3, 2014 at 12:40 AM, Jaydeep Patil <patil.jay2...@gmail.com> wrote:
> Hi Lan,
> Currently I am doing some automation in python excel. It read the data & 
> plots number of graphs. It took more than 20 minutes. So while running my 
> python program if user clicks on excel, error came.
> So just i want to lock GUI not workstation.
> I hope you understand this.
> Let me know if you have any idea about it.

You can set the Application.Interactive property on Excel to block user input:


excel_app = win32com.client.Dispatch("Excel.Application")
excel_app.Interactive = False
    # Do some automation...
    excel_app.Interactive = True

Reply via email to