Browse Source

Made imports more specific to speed up start of app

tags/v1.0.0
Robert Klep 12 years ago
parent
commit
f245c8dc4c
1 changed files with 4 additions and 3 deletions
  1. +4
    -3
      ToggleProxy.py

+ 4
- 3
ToggleProxy.py View File

@@ -1,8 +1,9 @@
#!/usr/bin/env python #!/usr/bin/env python


from Foundation import *
from AppKit import *
from SystemConfiguration import *
from Foundation import NSLog, kCFRunLoopCommonModes, kCFAllocatorDefault, CFDictionaryGetValue, CFRunLoopAddSource
from AppKit import NSObject, NSImage, NSStatusBar, NSVariableStatusItemLength, NSMenu, NSMenuItem, NSRunLoop, NSOnState, NSApp, NSLog, NSOffState, NSApplication
from SystemConfiguration import kSCNetworkProtocolTypeProxies, kSCPropNetProxiesFTPEnable, kSCPropNetProxiesHTTPEnable, kSCPropNetProxiesHTTPSEnable, kSCPropNetProxiesRTSPEnable, kSCPropNetProxiesSOCKSEnable, kSCNetworkProtocolTypeProxies
from SystemConfiguration import SCDynamicStoreCreate, SCNetworkServiceCopyProtocol, SCNetworkProtocolGetConfiguration, SCDynamicStoreCopyValue, SCPreferencesCreate, SCNetworkServiceCopyAll, SCNetworkServiceGetInterface, SCNetworkInterfaceGetBSDName, SCDynamicStoreSetNotificationKeys, SCDynamicStoreCreateRunLoopSource, SCDynamicStoreCopyProxies, SCNetworkServiceGetName
import commands, re import commands, re


class ToggleProxy(NSObject): class ToggleProxy(NSObject):


Loading…
Cancel
Save