Seit gestern lerne ich Python und wollte jetzt mal ein Fenster mit wx erstellen. Im Grunde gibts auch kein Problem, weil ich wxWidgets schon oft mit C++ benutzt habe, wenn ich aber mein Script ausführe bekomme ich diesen Error:
Script:
Code: Alles auswählen
#!/usr/bin/env python
import wx
app = wx.PySimpleApp()
frame = wx.Frame(None, wx.ID_ANY, "Hello World !")
frame.Show(True)
app.MainLoop()
'module' object has no attribute '__PySimpleApp'
Ich benutze Ubuntu und habe wxPython und wx installiert.
Edit (Leonidas): Verschoben.