Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Newcomers » Newcomers » Problems with glade use in Eclipse - Python Development(Glade with Python in Eclipse)
Problems with glade use in Eclipse - Python Development [message #987146] Fri, 23 November 2012 19:29
Charles Cole is currently offline Charles ColeFriend
Messages: 1
Registered: November 2012
Junior Member
I am new to Eclipse and am using it for Python and GUI development with Glade3.
I can run the tests if i double click the python script and it reads the glade code just fine and works. However, in Eclipse (my installation below) it does not work.
The code:
-------------------
import sys
try:
import pygtk
pygtk.require('2.0')
except:
pass

try:
import gtk
import gtk.glade
except:
print('GTK not available')
sys.exit(1)
----------------------
It exits here because it can not import gtk.glade
The message prints : GTK not available
-----------------------
However: If I run the same code in my python cmd prompt everything works.
Additionally if I simply double click my python script the code runs just fine.
Help
Thanks Charlie
P.S. The code is a simple tutorial code
---------------------
Eclipse Installation Details
4.2.1.v20120814-12... org.eclipse.rcp_root
Eclipse IDE for Java EE Developers 1.5.1.20120917-1257 epp.package.jee
Experimental Eclipse SDK Samples 3.3.0 org.eclipse.sdk.samples Eclipse.org
Pkg-config support 0.5.5.201207221958 org.eclipse.cdt.managedbuilder.pkgconfi... Petri Tuononen
PyDev for Eclipse 2.7.1.2012100913 org.python.pydev.feature.feature.group Aptana
Pydev Mylyn Integration 0.4.0 org.python.pydev.mylyn.feature.feature.g... Fabio Zadrozny
Previous Topic:tool bar ions
Next Topic:How to open eclipse project on a different computer
Goto Forum:
  


Current Time: Sat Apr 17 09:32:58 GMT 2021

Powered by FUDForum. Page generated in 0.03428 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top