Learning to use wxPython

Discussion in 'Python' started by KDawg44, Apr 27, 2007.

  1. KDawg44

    KDawg44 Guest

    Hi,

    I downloaded the wxPython demo and did an emerge wxpython (gentoo) to
    install. When I run the demo, I am getting this error:


    # python demo.py
    Traceback (most recent call last):
    File "/usr/lib/python2.4/site-packages/wx-2.6-gtk2-ansi/wx/
    _misc.py", line 1286, in Notify
    self.notify()
    File "/usr/lib/python2.4/site-packages/wx-2.6-gtk2-ansi/wx/
    _core.py", line 13637, in Notify
    self.result = self.callable(*self.args, **self.kwargs)
    File "/root/wxPython Demo/wxPython-2.8.3.0/demo/Main.py", line 1798,
    in ShowMain
    frame = wxPythonDemo(None, "wxPython: (A Demonstration)")
    File "/root/wxPython Demo/wxPython-2.8.3.0/demo/Main.py", line 1275,
    in __init__
    self.filter = wx.SearchCtrl(leftPanel)
    AttributeError: 'module' object has no attribute 'SearchCtrl'

    What am I doing wrong?

    Thanks.
     
    KDawg44, Apr 27, 2007
    #1
    1. Advertising

  2. KDawg44 wrote:
    > Hi,
    >

    Hi,

    > I downloaded the wxPython demo and did an emerge wxpython (gentoo) to
    > install. When I run the demo, I am getting this error:
    >
    >
    > # python demo.py Traceback (most recent call last): File
    > "/usr/lib/python2.4/site-packages/wx-2.6-gtk2-ansi/wx/ _misc.py",
    > line 1286, in Notify


    From here, I read that you are using the wx version 2.6 and the demo
    that you are tring are for the 2.8.3! (the last as now).
    So:
    1) install the new 2.8
    2) download the demo for the 2.6! :)

    Bye,
    Michele
     
    Michele Petrazzo, Apr 27, 2007
    #2
    1. Advertising

  3. KDawg44

    KDawg44 Guest

    On Apr 27, 11:25 am, Michele Petrazzo
    <> wrote:
    > KDawg44 wrote:
    > > Hi,

    >
    > Hi,
    >
    > > I downloaded the wxPython demo and did an emerge wxpython (gentoo) to
    > > install. When I run the demo, I am getting this error:

    >
    > > # python demo.py Traceback (most recent call last): File
    > > "/usr/lib/python2.4/site-packages/wx-2.6-gtk2-ansi/wx/ _misc.py",
    > > line 1286, in Notify

    >
    > From here, I read that you are using the wx version 2.6 and the demo
    > that you are tring are for the 2.8.3! (the last as now).
    > So:
    > 1) install the new 2.8
    > 2) download the demo for the 2.6! :)
    >
    > Bye,
    > Michele


    ahhh my bad i did not realize that. Thanks!
     
    KDawg44, Apr 27, 2007
    #3
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Anand
    Replies:
    1
    Views:
    375
    Cliff Wells
    Jul 23, 2003
  2. ulysses
    Replies:
    4
    Views:
    823
    Werner Schiendl
    Oct 22, 2003
  3. Hal Vaughan
    Replies:
    7
    Views:
    535
  4. ata.jaf
    Replies:
    1
    Views:
    329
    David Bolen
    Jul 16, 2010
  5. Andrey Popp

    [I'm learning C]: Learning to use ucontext

    Andrey Popp, Jan 29, 2012, in forum: C Programming
    Replies:
    5
    Views:
    809
    Keith Thompson
    Jan 31, 2012
Loading...

Share This Page