Should I mix wxpython and pyobjc ?
Posted
by Anurag Uniyal
on Stack Overflow
See other posts from Stack Overflow
or by Anurag Uniyal
Published on 2010-04-01T14:42:53Z
Indexed on
2010/04/03
2:43 UTC
Read the original article
Hit count: 556
I have a wxPython based app which I am porting to Mac OS X, in that I need to show some alerts which should look like native mac alerts, so I am using pyobjc for that e.g.
import Cocoa
import wx
app = wx.PySimpleApp()
frame = wx.Frame(None, title="mac alert test")
app.SetTopWindow(frame)
frame.Show()
def onclick(event):
Cocoa.CFUserNotificationDisplayAlert(0, 3, 0, 0, 0, "Should i mix wxpython and objc", "hmmm...",
"Cool", "Not Cool", "Whatever")
frame.Bind(wx.EVT_LEFT_DOWN, onclick)
app.MainLoop()
Is there any thing wrong in such mixing of wx and objc code, any failure points ?
© Stack Overflow or respective owner