Ich Versuche mit folgendem Code ein RichTextCtrl zu erzeugen
Code: Alles auswählen
import wx
class MainWindow(wx.Frame):
def __init__(self):
wx.Frame.__init__(self, None, -1, "GM3", size=(350,350))
panel = MainPanel(self)
self.Center()
self.Show(1)
class MainPanel(wx.Panel):
def __init__(self,parent):
wx.Panel.__init__(self, parent, -1, pos=(0,0), size=(350,350))
wx.RichTextCtrl(parent, -1, pos=(0,0), size=(350,350))
self.Show(1)
def main():
app = wx.PySimpleApp()
frame = MainWindow()
app.MainLoop()
if __name__ == "__main__":
main()
Was die Fehlermeldung bedeuted weiß ich, aber wie bekomm ich das nun hin?File "test.py", line 13, in __init__
wx.RichTextCtrl(parent, -1, pos=(0,0), size=(350,350))
AttributeError: 'module' object has no attribute 'RichTextCtrl'