473,407 Members | 2,312 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,407 software developers and data experts.

Problems with pygtk/gtk.glade

I've just setup a new box with Slackware 10, and am running into
problems with simple programs that worked just fine on my old slak box
(and still do). The only difference I can see between the two boxes is
that the new one is running python 2.3.4, and the old is 2.3.3.

The code is a barely modified version of one of the tutorials, and the
errors I get are:

Traceback (most recent call last):
File "./oldmp3.py", line 78, in ?
app=appgui()
File "./oldmp3.py", line 15, in __init__
self.wTree=gtk.glade.XML (gladefile,windowname)
TypeError: typedict must be a mapping

And, as a matter of fact, when I try and run MathFlash from the tutorial
in the latest Linux Journal, I get similar errors:

Traceback (most recent call last):
File "./MathFlash-final.py", line 165, in ?
main(sys.argv)
File "./MathFlash-final.py", line 158, in main
w = MathFlash()
File "./MathFlash-final.py", line 34, in __init__
self.init()
File "./MathFlash-final.py", line 75, in init
GladeWindow.__init__(self, filename, top_window, widget_list, handlers)
File "/root/bin/GladeWindow.py", line 77, in __init__
self.xml = gtk.glade.XML(fname)
TypeError: typedict must be a mapping

Has something changed in the latest version of python, or is there
something else in my setup that I've missed that is causing these errors?

I've searched google/google groups in vain...

Any assistance would be greatly appreciated.

Thanks,
Jul 18 '05 #1
1 1226
On Thu, 22 Jul 2004 11:17:43 -0700, Sridhar R wrote:
Try using the latest version of pygtk [1] - 2.3.93, I guess
[1] http://www.pygtk.org

I had the same problems with 2.3.93. I downloaded 2.3.94 (from
somewhere in this list) and it solved it. I'm not sure if it's stable
though, I just needed it to test some application.

Bye
--
Haim
Jul 18 '05 #2

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

Similar topics

4
by: j_mckitrick | last post by:
Hi all. Here is a tiny container for one of each combo box, along with the glade file. Just 2 widgets, so hopefully not too large. How the heck do I get the selection from the ComboBox, as...
5
by: Egbert Bouwman | last post by:
As a newby to PyGTK I already have produced some gui's I like, but I have difficulties in finding out what method or other instrument I need for doing various things. I have not yet found the...
3
by: Google Mike | last post by:
This was a tough one (at least for me), and wasn't exactly what I wanted when I was working on just setting on item's font, but shows how you can change the font for an entire PyGTK application. I...
1
by: Thomas Bartkus | last post by:
I am experimenting (flailing around?) with glade and python. Both under MS Windows and Linux. I understand why I want to "import gtk" It gives me access to the critical gui program loop...
0
by: Richard Taylor | last post by:
User-Agent: OSXnews 2.07 Xref: number1.nntp.dca.giganews.com comp.lang.python:437315 Hi I am trying to use py2app (http://undefined.org/python/) to package a gnome-python application...
0
by: Tom Grove | last post by:
I can't seem to get a function to continue after I call another gtk window class. Basically I need to grab a date from a calendar in one windows and insert that value into an entry box on the...
6
by: seb | last post by:
Hi, I am using pygtk for the first times. I am wondering what would be the best "pattern" to interface pygtk with a thread. The thread is collecting informations (over the network for...
1
by: manatlan | last post by:
I was a fan of "SimpleGladeApp/tepache way" to build a pygtk app. I've build a new efficient/dynamic way to build a pygtk app ... Here is an example :...
0
by: Michael Palmer | last post by:
On Sep 16, 12:30 pm, binaryjesus <coolman.gu...@gmail.comwrote: I haven't tried it myself, but I came across a blog post the other day that describes a way of building windows installers for...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
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
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
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
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,...
0
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...
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
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...

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.