Steve
2014-10-17 10:56:35 UTC
Hello,
Today i updated OS X Mavericks to OS X Yosemite and now i canÂŽt run a
simple MessageDialog Box. Everytime when i want to Display a MessageBox it
will be closed immediately.
I already removed the installation, reboot and made a fresh install of
wxPython with the same result.
wxversion.getInstalled() delivers ['3.0-osx-cocoa']
Here are some Code which is not working
import wx
class TestFrame(wx.Frame):
def __init__(self):
wx.Frame.__init__(self, None, title='test')
def Box(self):
dlg = wx.MessageDialog(self, 'Hello from Python and wxPython!',
'A Message Box',
wx.OK | wx.ICON_INFORMATION
#wx.YES_NO | wx.NO_DEFAULT | wx.CANCEL |
wx.ICON_INFORMATION
)
dlg.ShowModal()
dlg.Destroy()
app = wx.App(redirect=False)
a = TestFrame()
a.Box()
Here an other example without a Frame
import wx
def Info():
dlg = wx.MessageDialog(None, "Hello World!", "Demo", wx.OK | wx.
ICON_INFORMATION)
dlg.ShowModal()
dlg.Destroy()
app = wx.App(redirect=False)
Info()
Hope it helps to find this Bug
Greetings
Steve
Today i updated OS X Mavericks to OS X Yosemite and now i canÂŽt run a
simple MessageDialog Box. Everytime when i want to Display a MessageBox it
will be closed immediately.
I already removed the installation, reboot and made a fresh install of
wxPython with the same result.
wxversion.getInstalled() delivers ['3.0-osx-cocoa']
Here are some Code which is not working
import wx
class TestFrame(wx.Frame):
def __init__(self):
wx.Frame.__init__(self, None, title='test')
def Box(self):
dlg = wx.MessageDialog(self, 'Hello from Python and wxPython!',
'A Message Box',
wx.OK | wx.ICON_INFORMATION
#wx.YES_NO | wx.NO_DEFAULT | wx.CANCEL |
wx.ICON_INFORMATION
)
dlg.ShowModal()
dlg.Destroy()
app = wx.App(redirect=False)
a = TestFrame()
a.Box()
Here an other example without a Frame
import wx
def Info():
dlg = wx.MessageDialog(None, "Hello World!", "Demo", wx.OK | wx.
ICON_INFORMATION)
dlg.ShowModal()
dlg.Destroy()
app = wx.App(redirect=False)
Info()
Hope it helps to find this Bug
Greetings
Steve
--
You received this message because you are subscribed to the Google Groups "wxPython-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to wxpython-users+***@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
You received this message because you are subscribed to the Google Groups "wxPython-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to wxpython-users+***@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.