ok, sorry for the long wait.
I tried this on both my work (XP) and home PC (Vista64) and they are
both consistent.
I had both Python2.6 and Python 3.0 installed.
wxPython didn't like that.
As soon as I uninstalled Python3.0, my wxPython started running again.
Must be some kind of registry thing.
jefm wrote:
I ran the script from a command line, so it is not a file association
thing.
Ummm... if you ran it by just typing the script name --
c:\test\whatever.py rather than c:\pythonxx\python c:\test\whatever.py --
then it certainly could be a file association issue.
I do have multiple ve
I ran the script from a command line, so it is not a file association
thing.
I do have multiple versions of Python installed on that machine. I
will uninstall them all and install a single version from clean.
Thanks for the suggestion
--
http://mail.python.org/mailman/listinfo/python-list
jefm wrote:
when I call "import wx" from the interactive console, it works (i.e.
it doesn't complain).
But when I call the same from a script, it complains that it can not
find the wx module.
works for interactive
Python 2.6.1 (r261:67517,
when I call "import wx" from the interactive console, it works (i.e.
it doesn't complain).
But when I call the same from a script, it complains that it can not
find the wx module.
works for interactive
Python 2.6.1 (r261:67517, Dec 4 2008, 1
Bright ( ; You show me a crystal clear explaination.
As a newbie in python and even oop, I find the python documentation is not
easy to figure out. That's great with you guys so nice here.
> This is very good! wxApp is never defined if you use "import wx". You
> must u
They both work, thanks for your instruction ( :
> I suspect you are mixing program code for the namespace version (import
> wx) with the old method of importing (from wxPython.wx import *).
>
> Here are two version of a very simple app... try both and see if you get
> any er
It is the current version of wxPython(2.6). But follow you instruction it
still can't work...
But if using the default "from wxPython.wx import *", it work, don't know
what is the problem. May be this is an old example that cannot work with
"import wx". Because I ge
rrent new version 2.6. The error message said that the
> class
> wxApp is not defined...
This is very good! wxApp is never defined if you use "import wx". You
must use "wx.wxApp" instead.
If you import a module using "import anything", then all the names
im
The Great 'monkey' uttered these words on 4/28/2005 5:50 PM:
Which version of wxPython are you running? What do you mean by "does not
work"...does the import fail or is your code giving errors?
It is the current new version 2.6. The error message said that the class
wxApp is not defined...
But whe
n old example that cannot work with
"import wx". Because I get another example and it is ok.
I suspect you are mixing program code for the namespace version (import
wx) with the old method of importing (from wxPython.wx import *).
Here are two version of a very simple app... try both a
> Which version of wxPython are you running? What do you mean by "does not
> work"...does the import fail or is your code giving errors?
It is the current new version 2.6. The error message said that the class
wxApp is not defined...
But when using the default "from wxPython.wx import *", it works
The Great 'monkey' uttered these words on 4/28/2005 2:09 PM:
I just learn to make a blank windows frame with python and wxpython. I found
the statment "import wx" cannot work as the original "from wxPython.wx
import *". I see in the readme file of wxpython that if I
monkey wrote:
I just learn to make a blank windows frame with python and wxpython. I found
the statment "import wx" cannot work as the original "from wxPython.wx
import *". I see in the readme file of wxpython that if I install it as the
default one, I can use "import wx
I just learn to make a blank windows frame with python and wxpython. I found
the statment "import wx" cannot work as the original "from wxPython.wx
import *". I see in the readme file of wxpython that if I install it as the
default one, I can use "import wx" instead
Hi all,
Has anyone tried building wxPython-2.5.3 with python2.4 ? after building and
setting paths stuff, i have trouble importing wx - the error says :
"ImportError : No module named _core_"
can someone shed light on this ?
regards,
KM
--
http://mail.python.org/mailman/listinfo/python-list
16 matches
Mail list logo