Did I find the right examples for you? yes no

All Samples(82)  |  Call(61)  |  Derive(0)  |  Import(21)

src/m/a/main-HEAD/External.LCA_RESTRICTED/Languages/IronPython/27/Lib/site-packages/win32/Demos/winprocess.py   main(Download)
        win32gui.EnumWindows(self.__close__, 0)
        if self.wait(gracePeriod) != win32event.WAIT_OBJECT_0:
            win32process.TerminateProcess(self.hProcess, 0)
            win32api.Sleep(100) # wait for resources to be released
 

src/t/r/TrustRouter-HEAD/client/packaging/Windows/Python32/Lib/site-packages/win32/Demos/winprocess.py   TrustRouter(Download)
        win32gui.EnumWindows(self.__close__, 0)
        if self.wait(gracePeriod) != win32event.WAIT_OBJECT_0:
            win32process.TerminateProcess(self.hProcess, 0)
            win32api.Sleep(100) # wait for resources to be released
 

src/e/i/einstein-HEAD/Python25Einstein/Lib/site-packages/win32/Demos/winprocess.py   einstein(Download)
        win32gui.EnumWindows(self.__close__, 0)
        if self.wait(gracePeriod) != win32event.WAIT_OBJECT_0:
            win32process.TerminateProcess(self.hProcess, 0)
            win32api.Sleep(100) # wait for resources to be released
 

src/s/u/SublimeSpeech-HEAD/lib/pywin64bit/win32/Demos/winprocess.py   SublimeSpeech(Download)
        win32gui.EnumWindows(self.__close__, 0)
        if self.wait(gracePeriod) != win32event.WAIT_OBJECT_0:
            win32process.TerminateProcess(self.hProcess, 0)
            win32api.Sleep(100) # wait for resources to be released
 

src/s/u/SublimeSpeech-HEAD/lib/pywin32bit/win32/Demos/winprocess.py   SublimeSpeech(Download)
        win32gui.EnumWindows(self.__close__, 0)
        if self.wait(gracePeriod) != win32event.WAIT_OBJECT_0:
            win32process.TerminateProcess(self.hProcess, 0)
            win32api.Sleep(100) # wait for resources to be released
 

src/s/u/superpy-1.2.6/superpy/utils/winprocess.py   superpy(Download)
        win32gui.EnumWindows(self.__close__, 0)
        if self.wait(gracePeriod) != win32event.WAIT_OBJECT_0:
            win32process.TerminateProcess(self.hProcess, 0)
            win32api.Sleep(100) # wait for resources to be released
 

src/t/o/Toolserver-0.4.1/tsctl-win32.py   Toolserver(Download)
    def stop_zserver(self):
        win32process.TerminateProcess(self.hTooFPy,0)
 
    def restart_zserver(self):
        if time.time() - self.last_start_time < self.restart_min_time:

src/s/p/Spherebot-Host-GUI-HEAD/InkscapePortable/App/Inkscape/python/Lib/subprocess.py   Spherebot-Host-GUI(Download)
                                 GetExitCodeProcess, STARTF_USESTDHANDLES, \
                                 STARTF_USESHOWWINDOW, CREATE_NEW_CONSOLE
        from win32process import TerminateProcess
        from win32event import WaitForSingleObject, INFINITE, WAIT_OBJECT_0
    else:
        def terminate(self):
            """Terminates the process
            """
            TerminateProcess(self._handle, 1)
 

src/l/a/landline-server-HEAD/co.whatisuplabs.ldln/lib/play/python/Lib/subprocess.py   landline-server(Download)
                                 GetExitCodeProcess, STARTF_USESTDHANDLES, \
                                 STARTF_USESHOWWINDOW, CREATE_NEW_CONSOLE
        from win32process import TerminateProcess
        from win32event import WaitForSingleObject, INFINITE, WAIT_OBJECT_0
    else:
        def terminate(self):
            """Terminates the process
            """
            TerminateProcess(self._handle, 1)
 

src/s/i/Sipie-0.1196144357/Sipie/StreamHandler.py   Sipie(Download)
    def close(self):
 
        if sys.platform == 'win32':
            win32process.TerminateProcess(self.handle, 0)
        else:
    def close(self):
        if sys.platform == 'win32':
            try:
                win32process.TerminateProcess(self.handle, 0)
            except:
    def close(self):
 
        if sys.platform == 'win32':
            win32process.TerminateProcess(self.handle, 0)
            time.sleep(1)
    def close(self):
 
        if sys.platform == 'win32':
            win32process.TerminateProcess(self.handle, 0)
        else:
    def close(self):
        if sys.platform == 'win32':
            try:
                win32process.TerminateProcess(self.handle, 0)
            except:

  1 | 2 | 3 | 4 | 5  Next