You should pip install pyobjc
first.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import contextlib | |
import ctypes | |
import struct | |
from ctypes import c_void_p, c_uint16, c_uint32, c_int32, c_char_p, POINTER | |
from keyring.py27compat import string_types, add_metaclass | |
sec_keychain_ref = sec_keychain_item_ref = c_void_p | |
OS_status = c_int32 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Backup destination details are stored in: /Library/Preferences/com.apple.TimeMachine.plist | |
# 10.11 | |
from Foundation import NSBundle | |
TMMenu = NSBundle.bundleWithPath_('/System/Library/CoreServices/Menu Extras/TimeMachine.menu') | |
AppleTMSettings = TMMenu.classNamed_('AppleTMSettings') | |
settings = AppleTMSettings.sharedSettings() | |
# @interface AppleTMSettings : NSObject |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
altgraph (0.10.2) | |
bdist-mpkg (0.5.0) | |
bonjour-py (0.3) | |
boto (2.38.0) | |
bz2file (0.98) | |
Cython (0.23.1) | |
gensim (0.10.1) | |
macholib (1.5.1) | |
matplotlib (1.3.1) | |
mecab-python (0.996) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Agnes en_US # Isn't it nice to have a computer that will talk to you? | |
Albert en_US # I have a frog in my throat. No, I mean a real frog! | |
Alex en_US # Most people recognize me by my voice. | |
Alice it_IT # Salve, mi chiamo Alice e sono una voce italiana. | |
Alva sv_SE # Hej, jag heter Alva. Jag är en svensk röst. | |
Amelie fr_CA # Bonjour, je m’appelle Amelie. Je suis une voix canadienne. | |
Anna de_DE # Hallo, ich heiße Anna und ich bin eine deutsche Stimme. | |
Bad News en_US # The light you see at the end of the tunnel is the headlamp of a fast approaching train. | |
Bahh en_US # Do not pull the wool over my eyes. | |
Bells en_US # Time flies when you are having fun. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
""" | |
En una ventana muestra 7 vistas seleccionadas desde una barra de herramientas | |
""" | |
from Foundation import * | |
from AppKit import * | |
import objc | |
class DashboardController (NSViewController): | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
-(void) styleTextField { | |
[textField setTextColor:[NSColor blackColor]]; | |
} |