top button
Flag Notify
    Connect to us
      Site Registration

Site Registration

How to turn off Python's event log window in the background?

+1 vote
472 views

Whenever I run the Leo editor (a Python application) from Windows (8.1), there is always an event log window in the background. I want to turn it off.

It was suggested to me on another forum that I use pythonw.exe instead of python.exe to prevent the window from being displayed, but I don't know how to do this, because it is all automatic: I just click on the .py file, and the python interpreter is automatically loaded.

Could someone please tell me how to disable the event log window?

posted Aug 3, 2014 by anonymous

Share this question
Facebook Share Button Twitter Share Button LinkedIn Share Button

2 Answers

+1 vote

Assuming you have your installation set up in the normal way, renaming your .py file to .pyw will have it run with pythonw.exe instead of python.exe. That should do what you want.

answer Aug 3, 2014 by Majula Joshi
0 votes

Event Viewer is a built-in tool in Windows 8/Windows 8.1, and is responsible for maintaining the logs for all the events and activities that take place in the operating system, when talking about disabling the Event Viewer, it actually means that the Event Log service needs to be disabled.

In order to disable the Event Log service on Windows 8/Windows 8.1, you must follow the steps given below:

Step 1: Using any account that has administrative privileges to log on to Windows 8/Windows 8.1 computer.
From the Start screen, click the Desktop tile.

Step 2: Once on the desktop window, press Windows + R keys simultaneously on the keyboard to initialize the Run command box.

Step 3: In the available field in the Run command box, type the SERVICES.MSC command and press Enter.

Step 4: On the opened Services snap-in, locate and double-click the Windows Event Log service.

Step 5: On the Windows Event Log Properties box, make sure that the General tab is selected. If the service is already running, click the Stop button under the Service status section.

Step 6: On the Stop Other Services box that pops up, click Yes to allow Windows to stop the other dependent services.

Step 7: Once this is done, from the Startup type drop-down list, choose Disabled.

Step 8: Finally click OK to save the changes that you have made, and close the Services snap-in.

Step 9: Restart the computer in order to allow the changes to take effect.

answer Aug 3, 2014 by Amit Kumar Pandey
Similar Questions
+2 votes

What are the best practices to reduce bugs caused by Python's dynamic data-type characteristic? Can Python programmers here advise?

+1 vote

How will you create a dictionary in python?
How will you get all the keys from the dictionary?
How will you get all the values from the dictionary?

+2 votes

I want to use (https://github.com/timetric/python-metar). Our deployment process more or less requires that it be installed via pip. We maintain our own cache of packages and install using:

pip install --no-index --quiet --find-links packages --requirement requirements.txt 

What I can't figure out is what I need to do to go from a clone of the github repo to a tarball I can drop into our packages directory. Is there some tutorial somewhere that explains this?

0 votes

Does any one have a good solution for how to embed the output of a subprocess (ex. subprocess.Popen("htop", stdout=subprocess.PIPE)) into an ncurses window? So for example, the terminal window is broken up into quadrants and the top right has htop running inside. I'd imagine this would involve some kind of terminal emulation as the dimensions of the window would need to be queried by htop.

...