From ben.bw at me.com Tue Jan 22 06:07:28 2019 From: ben.bw at me.com (Ben Byram-Wigfield) Date: Tue, 22 Jan 2019 11:07:28 +0000 Subject: [Pythonmac-SIG] PMPrinterPrintWithProvider Message-ID: Hello I want to use some of the Printing APIs, but I?m having trouble finding them. Have things like PMPrinterPrintWithProvider, PMPrinterPrintWithFile, been implemented in PyObjC? I can?t find them in ApplicationServices, AppKit, Quartz or CoreFoundation modules. Thanks Ben From ronaldoussoren at mac.com Fri Jan 25 05:44:04 2019 From: ronaldoussoren at mac.com (Ronald Oussoren) Date: Fri, 25 Jan 2019 11:44:04 +0100 Subject: [Pythonmac-SIG] PMPrinterPrintWithProvider In-Reply-To: References: Message-ID: <909E0AA7-13DA-4781-97C5-C58F1B3D0747@mac.com> Hi, These APIs are not available through PyObjC at this time. Why do you want these APIs instead of the higher level APIs in AppKit? Could you file an issue at > to help me not forget to look into wrapping the Core Printing API? I?m slowly working my way through all APIs that aren?t deprecated, and haven?t gotten around to these APIs yet. Ronald ? Twitter: @ronaldoussoren Blog: https://blog.ronaldoussoren.net/ > On 22 Jan 2019, at 12:07, Ben Byram-Wigfield via Pythonmac-SIG wrote: > > Hello > > I want to use some of the Printing APIs, but I?m having trouble finding them. Have things like PMPrinterPrintWithProvider, PMPrinterPrintWithFile, been implemented in PyObjC? I can?t find them in ApplicationServices, AppKit, Quartz or CoreFoundation modules. > > Thanks > > Ben > _______________________________________________ > Pythonmac-SIG maillist - Pythonmac-SIG at python.org > https://mail.python.org/mailman/listinfo/pythonmac-sig > unsubscribe: https://mail.python.org/mailman/options/Pythonmac-SIG -------------- next part -------------- An HTML attachment was scrubbed... URL: From kw at codebykevin.com Fri Jan 25 09:47:47 2019 From: kw at codebykevin.com (Kevin Walzer) Date: Fri, 25 Jan 2019 09:47:47 -0500 Subject: [Pythonmac-SIG] PMPrinterPrintWithProvider In-Reply-To: <909E0AA7-13DA-4781-97C5-C58F1B3D0747@mac.com> References: <909E0AA7-13DA-4781-97C5-C58F1B3D0747@mac.com> Message-ID: <40f489c8-5b49-5d10-b2df-7fbec21c67aa@codebykevin.com> On 1/25/19 5:44 AM, Ronald Oussoren via Pythonmac-SIG wrote: > These APIs are not available through PyObjC at this time. Why do you > want these APIs instead of the higher level APIs in AppKit? Since these are C API's, it should be possible to access them through ctypes, yes? -- Kevin Walzer Code by Kevin http://www.codebykevin.com From ronaldoussoren at mac.com Mon Jan 28 14:29:42 2019 From: ronaldoussoren at mac.com (Ronald Oussoren) Date: Mon, 28 Jan 2019 20:29:42 +0100 Subject: [Pythonmac-SIG] PMPrinterPrintWithProvider In-Reply-To: <40f489c8-5b49-5d10-b2df-7fbec21c67aa@codebykevin.com> References: <909E0AA7-13DA-4781-97C5-C58F1B3D0747@mac.com> <40f489c8-5b49-5d10-b2df-7fbec21c67aa@codebykevin.com> Message-ID: > On 25 Jan 2019, at 15:47, Kevin Walzer wrote: > > On 1/25/19 5:44 AM, Ronald Oussoren via Pythonmac-SIG wrote: >> These APIs are not available through PyObjC at this time. Why do you want these APIs instead of the higher level APIs in AppKit? > > Since these are C API's, it should be possible to access them through ctypes, yes? Probably. It?s probably easier to ?just? create a minimal wrapper using PyObjC that exposes just the bits that you want to use. Which reminds me that I should write a blog about creating custom API bindings one of these days... Ronald -- Twitter: @ronaldoussoren Blog: https://blog.ronaldoussoren.net/ > > -- > Kevin Walzer > Code by Kevin > http://www.codebykevin.com > > _______________________________________________ > Pythonmac-SIG maillist - Pythonmac-SIG at python.org > https://mail.python.org/mailman/listinfo/pythonmac-sig > unsubscribe: https://mail.python.org/mailman/options/Pythonmac-SIG