ctrl+shift+p filters: :st2 :st3 :win :osx :linux
Browse

Pywin​32

by SublimeText ST3 Win

Pywin32 support for sublime (win32api etc)

Details

  • 1.1.0
  • github.​com
  • github.​com
  • 10 years ago
  • 57 minutes ago
  • 10 years ago

Installs

  • Total 11K
  • Win 11K
  • Mac 5
  • Linux 0
Apr 20 Apr 19 Apr 18 Apr 17 Apr 16 Apr 15 Apr 14 Apr 13 Apr 12 Apr 11 Apr 10 Apr 9 Apr 8 Apr 7 Apr 6 Apr 5 Apr 4 Apr 3 Apr 2 Apr 1 Mar 31 Mar 30 Mar 29 Mar 28 Mar 27 Mar 26 Mar 25 Mar 24 Mar 23 Mar 22 Mar 21 Mar 20 Mar 19 Mar 18 Mar 17 Mar 16 Mar 15 Mar 14 Mar 13 Mar 12 Mar 11 Mar 10 Mar 9 Mar 8 Mar 7 Mar 6
Windows 2 1 2 3 2 2 0 5 3 2 2 5 3 3 1 3 1 1 4 3 0 2 1 2 2 3 3 1 3 1 3 4 4 1 3 0 2 3 3 2 1 2 2 5 5 2
Mac 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
Linux 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0

Readme

Source
raw.​githubusercontent.​com

Pywin32 (Deprecated)

This package was deprecated in favor of the pywin32 library, which your package can depend on and Package Control will install accordingly. See https://packagecontrol.io/docs/dependencies on how to specify a dependency on this library (previously called “dependency”) in your package.


Pywin32 support for sublime (win32api etc)

Still evaluating what needs to be included and what doesn't, so if it is missing something important, please let me know.

Using Pywin32

Pywin32 modules should be accessible as soon as Sublime loads up the Pywin32 plugin…but since there is no guarunteed way to ensure all plugins are loaded after Pywin32 gets loaded, you should include Pywin32.setup before including any pywin32 modules. You can include it once in the top most level file, and all subsequent includes from that file should be guarunteed access. It does not have to be included in all files that call pywin32 modules, just once in the top level file that is the entry point. If I could guaruntee pywin32 to get loaded before all plugins, then even this requriement would not be necessary.

Example (show url path of all open explorer windows):

import Pywin32.setup
from win32com.client.gencache import EnsureDispatch


def run():
    for w in EnsureDispatch("Shell.Application").Windows():
        print(w.LocationName + "=" + w.LocationURL)

run()