Re: [BUG] InspectionTool doesn't run with Python3
philippe dalet <[email protected]>
| Newsgroups | gmane.comp.python.wxpython.devel |
|---|---|
| Message-ID | <20150503095602.3701eacc@administrateur-System-Product-Name> |
Le Sun, 3 May 2015 01:43:31 +0200, <[email protected]> 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() > > > 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) -- 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.