Traceback (most recent call last):
File "C:\Users\Gamemusta\Documents\test.py", line 2, in <module>
import wx
File "C:\Python-3.2a2\lib\site-packages\wx-2.9.1-msw\wx
\__init__.py", line 45, in <module>
from wx._core import *
File "C:\Python-3.2a2\lib\site-packages\wx-2.9.1-msw\wx\_core.py",
line 4044, in <module>
class wxEvtHandler(wxObject):
File "C:\Python-3.2a2\lib\site-packages\wx-2.9.1-msw\wx\_core.py",
line 4132, in wxEvtHandler
def Bind(self, event, handler, source=None, id=wx.ID_ANY,
id2=wx.ID_ANY):
AttributeError: 'module' object has no attribute 'ID_ANY'
No idea why it happens, just any use of wx.anything breaks it. However
removing the dot works. Any thoughts? If this gets solved then it'll
be time to put my py3k port to the test.
No expert, but until they get here, I'll assum you're using wxPython
import, and not from wx. Using wxPython, I'm pretty sure is the
wxANYTHING, and import wx is wx.ANYTHING.
···
On Tue, Sep 28, 2010 at 9:37 AM, carl gonzalve <gamemusta@gmail.com> wrote:
Traceback (most recent call last):
File "C:\Users\Gamemusta\Documents\test.py", line 2, in <module>
import wx
File "C:\Python-3.2a2\lib\site-packages\wx-2.9.1-msw\wx
\__init__.py", line 45, in <module>
from wx._core import *
File "C:\Python-3.2a2\lib\site-packages\wx-2.9.1-msw\wx\_core.py",
line 4044, in <module>
class wxEvtHandler(wxObject):
File "C:\Python-3.2a2\lib\site-packages\wx-2.9.1-msw\wx\_core.py",
line 4132, in wxEvtHandler
def Bind(self, event, handler, source=None, id=wx.ID_ANY,
id2=wx.ID_ANY):
AttributeError: 'module' object has no attribute 'ID_ANY'
No idea why it happens, just any use of wx.anything breaks it. However
removing the dot works. Any thoughts? If this gets solved then it'll
be time to put my py3k port to the test.
Traceback (most recent call last):
File "C:\Users\Gamemusta\Documents\test.py", line 2, in <module>
import wx
File "C:\Python-3.2a2\lib\site-packages\wx-2.9.1-msw\wx
\__init__.py", line 45, in <module>
from wx._core import *
File "C:\Python-3.2a2\lib\site-packages\wx-2.9.1-msw\wx\_core.py",
line 4044, in <module>
class wxEvtHandler(wxObject):
File "C:\Python-3.2a2\lib\site-packages\wx-2.9.1-msw\wx\_core.py",
line 4132, in wxEvtHandler
def Bind(self, event, handler, source=None, id=wx.ID_ANY,
id2=wx.ID_ANY):
AttributeError: 'module' object has no attribute 'ID_ANY'
No idea why it happens, just any use of wx.anything breaks it. However
removing the dot works. Any thoughts? If this gets solved then it'll
be time to put my py3k port to the test.
No expert, but until they get here, I'll assum you're using wxPython
import, and not from wx(not from import, but import wx, then wx,ANYTHING). Using wxPython, I'm pretty sure is the
wxANYTHING, and import wx is wx.ANYTHING.
···
On Tue, Sep 28, 2010 at 11:55 AM, David Hutto <smokefloat@gmail.com> wrote:
On Tue, Sep 28, 2010 at 9:37 AM, carl gonzalve <gamemusta@gmail.com> wrote:
On Tue, Sep 28, 2010 at 11:56 AM, David Hutto <smokefloat@gmail.com> wrote:
On Tue, Sep 28, 2010 at 11:55 AM, David Hutto <smokefloat@gmail.com> wrote:
On Tue, Sep 28, 2010 at 9:37 AM, carl gonzalve <gamemusta@gmail.com> wrote:
Traceback (most recent call last):
File "C:\Users\Gamemusta\Documents\test.py", line 2, in <module>
import wx
File "C:\Python-3.2a2\lib\site-packages\wx-2.9.1-msw\wx
\__init__.py", line 45, in <module>
from wx._core import *
File "C:\Python-3.2a2\lib\site-packages\wx-2.9.1-msw\wx\_core.py",
line 4044, in <module>
class wxEvtHandler(wxObject):
File "C:\Python-3.2a2\lib\site-packages\wx-2.9.1-msw\wx\_core.py",
line 4132, in wxEvtHandler
def Bind(self, event, handler, source=None, id=wx.ID_ANY,
id2=wx.ID_ANY):
AttributeError: 'module' object has no attribute 'ID_ANY'
No idea why it happens, just any use of wx.anything breaks it. However
removing the dot works. Any thoughts? If this gets solved then it'll
be time to put my py3k port to the test.
No expert, but until they get here, I'll assum you're using wxPython
import, and not from wx(not from import, but import wx, then wx,ANYTHING). Using wxPython, I'm pretty sure is the
wxANYTHING, and import wx is wx.ANYTHING.
Ive figure it out, pretty stupid of me to not notice that wx.ID_ANY is
wxID_ANY...
well either way I've finished converting the _core_ module to py3.2.
I'll be working on the _windows_ module next. Got me some capsule
errors to fix.
···
On Sep 28, 11:59 am, David Hutto <smokefl...@gmail.com> wrote:
On Tue, Sep 28, 2010 at 11:56 AM, David Hutto <smokefl...@gmail.com> wrote:
> On Tue, Sep 28, 2010 at 11:55 AM, David Hutto <smokefl...@gmail.com> wrote:
>> On Tue, Sep 28, 2010 at 9:37 AM, carl gonzalve <gamemu...@gmail.com> wrote:
>>> Traceback (most recent call last):
>>> File "C:\Users\Gamemusta\Documents\test.py", line 2, in <module>
>>> import wx
>>> File "C:\Python-3.2a2\lib\site-packages\wx-2.9.1-msw\wx
>>> \__init__.py", line 45, in <module>
>>> from wx._core import *
>>> File "C:\Python-3.2a2\lib\site-packages\wx-2.9.1-msw\wx\_core.py",
>>> line 4044, in <module>
>>> class wxEvtHandler(wxObject):
>>> File "C:\Python-3.2a2\lib\site-packages\wx-2.9.1-msw\wx\_core.py",
>>> line 4132, in wxEvtHandler
>>> def Bind(self, event, handler, source=None, id=wx.ID_ANY,
>>> id2=wx.ID_ANY):
>>> AttributeError: 'module' object has no attribute 'ID_ANY'
>>> No idea why it happens, just any use of wx.anything breaks it. However
>>> removing the dot works. Any thoughts? If this gets solved then it'll
>>> be time to put my py3k port to the test.
>>> --
>>> To unsubscribe, send email to wxPython-users+unsubscribe@googlegroups.com
>>> or visithttp://groups.google.com/group/wxPython-users?hl=en
>> No expert, but until they get here, I'll assum you're using wxPython
>> import, and not from wx(not from import, but import wx, then wx,ANYTHING). Using wxPython, I'm pretty sure is the
>> wxANYTHING, and import wx is wx.ANYTHING.
You are using an unmodified version of SWIG that is not doing a rename that drops the wx from the start of the names.
Let's please discuss development-related and preview build issues on the wxPython-dev mail list. As I've mentioned to you before there is already a set of patches available that are an initial py3k port. There is no need for you to duplicate that work
···
On 9/28/10 6:37 AM, carl gonzalve wrote:
Traceback (most recent call last):
File "C:\Users\Gamemusta\Documents\test.py", line 2, in<module>
import wx
File "C:\Python-3.2a2\lib\site-packages\wx-2.9.1-msw\wx
\__init__.py", line 45, in<module>
from wx._core import *
File "C:\Python-3.2a2\lib\site-packages\wx-2.9.1-msw\wx\_core.py",
line 4044, in<module>
class wxEvtHandler(wxObject):
File "C:\Python-3.2a2\lib\site-packages\wx-2.9.1-msw\wx\_core.py",
line 4132, in wxEvtHandler
def Bind(self, event, handler, source=None, id=wx.ID_ANY,
id2=wx.ID_ANY):
AttributeError: 'module' object has no attribute 'ID_ANY'
No idea why it happens, just any use of wx.anything breaks it. However
removing the dot works. Any thoughts? If this gets solved then it'll
be time to put my py3k port to the test.