[BUG] InspectionTool doesn't run with Python3
| Newsgroups | gmane.comp.python.wxpython.devel |
|---|---|
| Message-ID | <55456128.1243320a.7086.142eSMTPIN_ADDED_MISSING@gmr-mx.google.com> |
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()
--
You received this message because you are subscribed to the Google Groups "wxPython-dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [email protected].
For more options, visit https://groups.google.com/d/optout.