473,791 Members | 3,105 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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.O nInit)
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.EV T_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 2109
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.O nInit)
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.EV T_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
3600
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 is under Linux, but I can't find it. Where should I look? I'm using Debian, is it a separate package? Thanks
9
2768
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 always installs under /usr/lib/python2.3/site-packages. Does anyone know how I can force it to install in 2.4's site-packages directory?
9
5557
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. But the "app.MainLoop()" in wxpython looks like conflicting with the "while 1:" in socket server. After I commented the "app.MainLoop()", everything is working except two things: 1. if I click anywhere on the screen with the mouse, the image is...
2
4244
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 manually pick a choice but I get an error when the choice is left at the default value, which is "Male". I have the radio box tied to an event to "see" when a choice is made, but how does it work if the person just leaves the default value? ...
2
2169
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 "/usr/lib/python2.4/site-packages/wx-2.6-gtk2-ansi/wx/ _misc.py", line 1286, in Notify
6
1844
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 unpacking the wxPython demo program. It appears to run after a fashion, but I also get this at the commandline. Any help much appreciated. (python:5865): Gtk-CRITICAL **: gtk_window_realize_icon: assertion
1
4603
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) self.Bind(wx.EVT_LISTBOX, self.select_dev, self.devlist) to create this box, but don't know how to implement self.select_dev
1
1584
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 achieve this. I guess it's a dialog window, right? but the crucial part is how to minimize the program to an icon on the panel and make it responsive to the click event. thanks in advance!
4
2851
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 when data in A is updated. I know cutom events in wxpython may work. But I found no material paricularly helpful :(
0
9515
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 effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
10427
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
10207
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
0
9995
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 protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
1
7537
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
6776
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
5431
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
1
4110
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
3718
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

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.