[Glade-users] Runtime Error in Glade XML
- From: plitanium at gmail.com (Rupinder Singh)
- Subject: [Glade-users] Runtime Error in Glade XML
- Date: Wed, 18 Jun 2008 14:00:39 +0530
Greetings to everyone,
I'm using Glade 3.4.3, and I created a simple GUI containing 2 buttons,
named it as GladeTwoButtonsGUI.glade.
The source file glade.py contains the following code:
*import os,sys,pygtk,gtk.glade
class TwoButtonsGUI:
def __init__(self):
self.window = gtk.glade.XML('GladeTwoButtonsGUI.glade', 'window1')
if __name__ == '__main__':
TwoButtonsGUI()
gtk.main()*
When I compiled it using python 2.5 IDLE , it generated the following error:
*Traceback (most recent call last):
File "C:/Documents and Settings/microsoft/Desktop/Python Files/glade.py",
line 9, in <module>
TwoButtonsGUI()
File "C:/Documents and Settings/microsoft/Desktop/Python Files/glade.py",
line 5, in __init__
self.window = gtk.glade.XML('GladeTwoButtonsGUI.glade', 'window1')
RuntimeError: could not create GladeXML object*
Kindly help me out so I can proceed wth my learning process
Yours Sincerely,
Rupinder
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.ximian.com/pipermail/glade-users/attachments/20080618/fd68a2d6/attachment.html
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]