wx Modul nicht gefunden?!

Plattformunabhängige GUIs mit wxWidgets.
Antworten
jazzdee!
User
Beiträge: 26
Registriert: Freitag 21. Oktober 2005, 21:45

Hab heute angefangen, mir Python anzuschauen und hab mir zu Hause mal den installer gesaugt.
Ich habe ihn hier gedownloadet:

http://www.python.org/download/

wenn ich jetzt diese script ausführen möchte:

Code: Alles auswählen

import wx
ID_ABOUT=101
ID_EXIT=110
class MainWindow(wx.Frame):
    def __init__(self,parent,id,title):
        wx.Frame.__init__(self,parent,wx.ID_ANY, title, size = ( 200,100),
                                     style=wx.DEFAULT_FRAME_STYLE|wx.NO_FULL_REPAINT_ON_RESIZE)
        self.control = wx.TextCtrl(self, 1, style=wx.TE_MULTILINE)
        self.CreateStatusBar() # A Statusbar in the bottom of the window
        # Setting up the menu.
        filemenu= wx.Menu()
        filemenu.Append(ID_ABOUT, "&About"," Information about this program")
        filemenu.AppendSeparator()
        filemenu.Append(ID_EXIT,"E&xit"," Terminate the program")
        # Creating the menubar.
        menuBar = wx.MenuBar()
        menuBar.Append(filemenu,"&File") # Adding the "filemenu" to the MenuBar
        self.SetMenuBar(menuBar)  # Adding the MenuBar to the Frame content.

        self.Show(True)
app = wx.PySimpleApp()
frame = MainWindow(None, -1, "Sample editor")
app.MainLoop()
dann bekomme ich immer die Meldung, dass das wx Modul nicht installiert ist. ich dachte immer, dass wäre standardmäßig dabei!?
Traceback (most recent call last):
File "C:/******/******/******/******/test.py", line 1, in -toplevel-
import wx
ImportError: No module named wx
CM
User
Beiträge: 2464
Registriert: Sonntag 29. August 2004, 19:47
Kontaktdaten:

Hoi,

nee, da muß ich Dich enttäuschen. Leider ist wxPython nicht Teil des Standardpythondownloads. Du findest es hier: http://www.wxpython.org/. Es gibt dort auch Windowsbinaries.

Viel Spaß mit wxPython,
Christian
Gast

CM hat geschrieben:Hoi,

nee, da muß ich Dich enttäuschen. Leider ist wxPython nicht Teil des Standardpythondownloads. Du findest es hier: http://www.wxpython.org/. Es gibt dort auch Windowsbinaries.

Viel Spaß mit wxPython,
Christian
vielen Dank, nun funzt es :)
wirst von heute an mehrer meine Fragen lesen müssen :D
CM
User
Beiträge: 2464
Registriert: Sonntag 29. August 2004, 19:47
Kontaktdaten:

... glaube damit kann ich - wir alle - leben. ;-)
Antworten