pyobjc Questions
3
Solved
I'm trying to move around windows programatically from Python on OS X.
I found a snippet of AppleScript here on Stackoverflow which does this, but I'd like to do it in Python or another "real" scr...
Siret asked 16/5, 2013 at 22:28
3
I'm trying to use cocoa-python with Xcode but it always calls up the error:
Traceback (most recent call last):
File "main.py", line 10, in <module>
import objc
ImportError: No module named...
10
Solved
I am trying to follow the instructions for the accepted answer to "PyObjC development with Xcode 3.2". I will repost them here since I don't have enough rep to comment on the actual question:
He...
Appear asked 23/10, 2009 at 16:46
9
Solved
I'm using Python 2 with Tkinter and PyObjC, and then I'm using py2app.
The program is working fine, but the window starts as hidden whenever I open the program, so it doesn't appear until I click...
2
I am writing a desktop usage statistics app. It runs a background daemon which wakes up at regular intervals, finds the name of the application window currently in focus and logs that data in datab...
3
Solved
How do I get the selected item of an NSOutlineView with using my own data source.
I see I can get selectedRow but it returns a row ID relative to the state of the outline. The only way to do it is ...
1
I am having some difficulty finding out how to send local notifications on Catalina using pyobjc.
The closes example I have seen is this:
PyObjC "Notifications are not allowed for this ...
Lineate asked 6/6, 2020 at 15:37
1
I'm trying to test a simple Python script to send out a macOS notification:
import UserNotifications
def notif_callback(err):
print("Error in notification callback:",err)
def auth_call...
Martens asked 6/8, 2019 at 17:43
1
Solved
How can I minimize/maximize windows in macOS from a Python script?
On Windows, there's a win32 api (the ShowWindow() function) that can do this. I'd like the macOS equivalent. I'd like to have a s...
3
Solved
I have objective C code to detect dark mode to change the status bar:
[[NSDistributedNotificationCenter defaultCenter] addObserver:self selector:@selector(darkModeChanged:) name:@"AppleInterfaceTh...
Binni asked 9/5, 2016 at 6:19
9
Solved
1
I'm trying to read OSX Clipboard using PyObjC.
Inside python shell
import AppKit
>>> clip = AppKit.NSPasteboard.generalPasteboard()
>>> dir(clip)
['__class__', '__delattr__', '_...
Somatology asked 5/9, 2014 at 18:39
1
I'm trying to change the DNS servers on my Mac (10.10.4) using PyObjC (3.0.4).
Everything seems to work: I get an authentication dialog prompting that my program is trying to change network settin...
1
Solved
I want to connect to a Wi-Fi network using Python on OS X (10.11). Based on CWInterface reference I figured out there is a iface.associateToNetwork_password_error_() method available, however when ...
2
Solved
I am trying to capture a single frame from the Apple iSight camera built into a Macbook Pro using Python (version 2.7 or 2.6) and the PyObjC (version 2.2).
As a starting point, I used this old St...
1
Solved
I Do Not Intend To Put The Project On The App Store
Short Question - is there any up-to-date PyObjC tutorial for embedding python scripts into an iOS app written in Objective-C and/or swift...
Dogfish asked 12/8, 2015 at 16:25
1
Solved
I am trying to put notification to notification centre (Mac OSX)
I am using PyObjC bindings to use cocoa api's from our python application.
I am using following code snippet :
import Foundation¬...
Indehiscent asked 8/8, 2014 at 13:36
1
I am writing a simple Mac application designed to run in the background and perform certain actions whenever the user clicks the mouse button. The app is written in Python using PyObjC. I am using ...
3
Solved
Xcode 3.2 has removed the default templates for the scripting languages (Ruby, Python etc). How do I find these templates to use in Xcode 3.2? Would I need to add anything else to Xcode to support ...
2
The only references I can find state that it's theoretically possible to write iOS apps using python. Does anyone know of any examples of apps that were written this way?
1
I am trying to connect to the Mountain Lion notification center via python. I've installed pyobjc and am following the instructions here and here. Also see: Working with Mountain Lion's Notific...
Octosyllabic asked 15/4, 2013 at 17:35
1
How do you use PyObjC to turn off and on the wireless interfaces of a Mac? My research to date has lead me to the Cocoa Framework and PyObjC. On the Mac Developer website I found an example of a wi...
3
Solved
One of Xcode's most powerful features is it's Intellisense completion, which brings up a list of potential candidates as you type the name of a Foundation/Cocoa/UIKit API. I am very interested in M...
Periotic asked 5/5, 2012 at 10:19
1
I installed the iphone-python package from Cydia, but the HelloPython app closes immediately when I run it from Springboard.
This may be a red herring, but I found the .py file in Terminal and tri...
2
I am new to Python. I am running Mac OS X 10.8.2, Python 2.7.3, Xcode 4.5.1.
I am not able to import pyobjc to python.I used easy_install pyobjc or manually downloading it from http://pypi.python.o...
1 Next >
© 2022 - 2024 — McMap. All rights reserved.