Am I right to say that the inspection tool doesn't work with Python3?
I tested the code below with the current wxPhoenix from git.
There is a memory assertion ("Speicherzugriffsfehler (Speicherabzug
geschrieben)" when pressing Ctrl+Alt+i.
#!/usr/bin/env python3
# -*- coding: utf-8 -*-
import wx
import wx.lib.mixins.inspection
class MyApp(wx.App, wx.lib.mixins.inspection.InspectionMixin):
def OnInit(self):
self.Init()
return True
class MyFrame(wx.Frame):
def __init__(self):
super(wx.Frame, self).__init__(None)
sizer = wx.BoxSizer(wx.VERTICAL)
sizer.Add(wx.Button(self, wx.ID_OK))
self.SetSizer(sizer)
if __name__ == '__main__':
app = MyApp()
win = MyFrame()
win.Show()
app.MainLoop()
I have tested your script on Python 3.4.3 on linux (ubuntu 14.04
64bits), wxPython 3.0.3.dev1820+49a8884.
It works fine.
Ph DALET.
gtk2 (phoenix)
···
Le Sun, 3 May 2015 01:43:31 +0200, <c.buhtz@posteo.jp> a écrit :
Am I right to say that the inspection tool doesn't work with Python3?
I tested the code below with the current wxPhoenix from git.
There is a memory assertion ("Speicherzugriffsfehler (Speicherabzug
geschrieben)" when pressing Ctrl+Alt+i.
#!/usr/bin/env python3
# -*- coding: utf-8 -*-
import wx
import wx.lib.mixins.inspection
class MyApp(wx.App, wx.lib.mixins.inspection.InspectionMixin):
def OnInit(self):
self.Init()
return True
class MyFrame(wx.Frame):
def __init__(self):
super(wx.Frame, self).__init__(None)
sizer = wx.BoxSizer(wx.VERTICAL)
sizer.Add(wx.Button(self, wx.ID_OK))
self.SetSizer(sizer)
if __name__ == '__main__':
app = MyApp()
win = MyFrame()
win.Show()
app.MainLoop()