473,396 Members | 1,875 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,396 software developers and data experts.

wxPython demo Bind error on debian

Hi,

I'm trying to get the wxPython demo to run on a Debian sarge testing
installation, but encounter the following error when I run the demo script:

# ./demo.py
Traceback (most recent call last):
File "./demo.py", line 4, in ?
Main.main()
File "/root/Python/wxPython-2.5.1.5/demo/Main.py", line 946, in main
app = MyApp(0) ##wx.Platform == "__WXMAC__")
File "/usr/lib/python2.3/site-packages/wxPython/wx.py", line 1951, in
__init__
_wxStart(self.OnInit)
File "/root/Python/wxPython-2.5.1.5/demo/Main.py", line 931, in OnInit
splash = MySplashScreen()
File "/root/Python/wxPython-2.5.1.5/demo/Main.py", line 907, in __init__
self.Bind(wx.EVT_CLOSE, self.OnClose)
AttributeError: MySplashScreen instance has no attribute 'Bind'

I installed wxPython using:

apt-get install libwxgtk2.4-python

and am running python2.3.4.

Trying to invoke any one of the individual demos encounters the same error.

Running my own sample app works, however.

The full list of python modules installed is as follows:

# apt-show-versions | grep -i python
python2.3-gtk2/testing uptodate 2.2.0-1
idle-python2.3/testing uptodate 2.3.4-2
python-doc/testing uptodate 2.3.4-1
python-extclass/testing uptodate 1.2.0zope-2.5.1-1.3
python/testing uptodate 2.3.4-1
python2.3-extclass/testing uptodate 1.2.0zope-2.5.1-1.3
python-gtk2/testing uptodate 2.2.0-1
python-xml/testing uptodate 0.8.3-5
libwxgtk2.4-python/testing uptodate 2.4.2.4
python2.3-dev/testing uptodate 2.3.4-2
python2.3-tk/testing uptodate 2.3.4-2
python2.3-examples/testing uptodate 2.3.4-2
python2.3-htmlgen/testing uptodate 2.2.2-9.1
python-gendoc/testing uptodate 0.73-10
python2.3-xml/testing uptodate 0.8.3-5
python-examples/testing uptodate 2.3.4-1
python2.3-doc/testing uptodate 2.3.4-2
python2.3/testing uptodate 2.3.4-2
python-dev/testing uptodate 2.3.4-1
python2.3-numeric/testing uptodate 23.1-3
python-gdbm/testing uptodate 2.3.4-1
python2.3-ldap/testing uptodate 1.9.999.pre19-1
python-ldap/testing uptodate 1.9.999.pre19-1
python2.3-iconvcodec/testing uptodate 1.1.2-1
python-htmlgen/testing uptodate 2.2.2-9.1
python2.3-imaging/testing uptodate 1.1.4-3
python2.3-gdbm/testing uptodate 2.3.4-2

Anyone got any ideas? I'm just starting out with wxPython...

Cheers

JK
Jul 18 '05 #1
1 2088
John Kinson wrote:
Hi,

I'm trying to get the wxPython demo to run on a Debian sarge testing
installation, but encounter the following error when I run the demo script:

# ./demo.py
Traceback (most recent call last):
File "./demo.py", line 4, in ?
Main.main()
File "/root/Python/wxPython-2.5.1.5/demo/Main.py", line 946, in main
app = MyApp(0) ##wx.Platform == "__WXMAC__")
File "/usr/lib/python2.3/site-packages/wxPython/wx.py", line 1951, in
__init__
_wxStart(self.OnInit)
File "/root/Python/wxPython-2.5.1.5/demo/Main.py", line 931, in OnInit
splash = MySplashScreen()
File "/root/Python/wxPython-2.5.1.5/demo/Main.py", line 907, in __init__
self.Bind(wx.EVT_CLOSE, self.OnClose)
AttributeError: MySplashScreen instance has no attribute 'Bind'

I installed wxPython using:

apt-get install libwxgtk2.4-python

and am running python2.3.4.

Trying to invoke any one of the individual demos encounters the same error.

Running my own sample app works, however.

The full list of python modules installed is as follows:

# apt-show-versions | grep -i python
python2.3-gtk2/testing uptodate 2.2.0-1
idle-python2.3/testing uptodate 2.3.4-2
python-doc/testing uptodate 2.3.4-1
python-extclass/testing uptodate 1.2.0zope-2.5.1-1.3
python/testing uptodate 2.3.4-1
python2.3-extclass/testing uptodate 1.2.0zope-2.5.1-1.3
python-gtk2/testing uptodate 2.2.0-1
python-xml/testing uptodate 0.8.3-5
libwxgtk2.4-python/testing uptodate 2.4.2.4
python2.3-dev/testing uptodate 2.3.4-2
python2.3-tk/testing uptodate 2.3.4-2
python2.3-examples/testing uptodate 2.3.4-2
python2.3-htmlgen/testing uptodate 2.2.2-9.1
python-gendoc/testing uptodate 0.73-10
python2.3-xml/testing uptodate 0.8.3-5
python-examples/testing uptodate 2.3.4-1
python2.3-doc/testing uptodate 2.3.4-2
python2.3/testing uptodate 2.3.4-2
python-dev/testing uptodate 2.3.4-1
python2.3-numeric/testing uptodate 23.1-3
python-gdbm/testing uptodate 2.3.4-1
python2.3-ldap/testing uptodate 1.9.999.pre19-1
python-ldap/testing uptodate 1.9.999.pre19-1
python2.3-iconvcodec/testing uptodate 1.1.2-1
python-htmlgen/testing uptodate 2.2.2-9.1
python2.3-imaging/testing uptodate 1.1.4-3
python2.3-gdbm/testing uptodate 2.3.4-2

Anyone got any ideas? I'm just starting out with wxPython...

Cheers

JK

Got to have Wxpython 2.5 - which breaks other stuff. Use the old demo.
John
Jul 18 '05 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
by: C GIllespie | last post by:
Dear All, I have wxpython under both windows and Linux. Under Windows there is a nice little demo, which demonstrates all the widgets (with accompanied source code). I presume the same demo...
9
by: amhoov | last post by:
Hi all, I'm trying to install wxPython on Debian using 'apt-get install python-wxgtk2.4.' I've got both Python 2.3 and 2.4 installed with 2.4 set as my default. For whatever reason, wxPython...
9
by: zxo102 | last post by:
Hi everyone, I am using a python socket server to collect data from a socket client and then control a image location ( wxpython) with the data, i.e. moving the image around in the wxpython frame....
2
by: crystalattice | last post by:
In my GUI app, I have a radio box allowing the user to pick his/her gender. When I click a button, I'd like the radio box to tell the program which choice is marked. I can get it to work when I...
2
by: KDawg44 | last post by:
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...
6
by: BartlebyScrivener | last post by:
If there is a wxPython on Debian user in the house? I am using the version of the demo that came with the apt-get download of wxPython. I thought I'd followed the instructions for installing and...
1
by: Bailu | last post by:
Hi, I am a newbie in wxPython and doing a program with ListBox, I want to select and deselect items in this box, I have use self.devlist = wx.ListBox(self, style=wx.LB_MULTIPLE)...
1
by: Jimmy | last post by:
hi,all! have you used 'dictionary' of linux, the program that rests on the panel as an icon, and when you click on the icon, it will display a window and do something. So i'm wondering how to...
4
by: Jimmy | last post by:
hi, all I'm having a problem with creating custom events in wxpython. I have a class A handling some data processing work and another class B of GUI matter. I need GUI to display information...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.