Seite 1 von 1

wxPlotWindow

Verfasst: Mittwoch 28. April 2004, 10:32
von beton
Hallo zusammen,

ich möchte gerne ein Fenster auf Basisi der Klasse wxPlotWindow erstellen:

Code: Alles auswählen

from wxPython import *

class MyPlotWindow(wxPlotWindow):

    def __init__(self, parent):
        wxPlotCanvas.__init__(self, parent = parent, id=-1)
        pass
Allerdings bringt er dann immer folgende Fehlermeldung:
Traceback (most recent call last):
File "D:\Mauch\python\PICO_wxPython_entwicklung\gui.py", line 356, in ?
class MyPlotWindow(wxPlotWindow):
NameError: name 'wxPlotWindow' is not defined
Muss ich da noch ein anderes Modul importieren ??

Bin für jeden Hinweis dankbar

Gruß beton

Verfasst: Mittwoch 28. April 2004, 11:27
von Christopy
wxPlotWindow scheint noch nicht in wxPython zu existieren.
Versuch doch mal wxPyPlot oder schau mal hier ob Du was passendes findest.

Verfasst: Mittwoch 28. April 2004, 12:57
von beton
Hi Christopy,

Das erklärt natürlich einiges ...

Der Tipp mit wxPyPlot war gut. Vielen Dank

beton