ok. Thanks Gonzalo.<br><br><br><div class="gmail_quote">On Sun, Jan 13, 2013 at 12:02 PM, Gonzalo Odiard <span dir="ltr"><<a href="mailto:godiard@gmail.com" target="_blank">godiard@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
Hi Kartik,<div>For this type of questions, is better use sugar-devel mailing list,</div><div>and if you want cc me. First, because maybe I don't have the reply,</div><div>and second, because the reply can be useful for other developers,</div>
<div>and the mails are archived and can be searched later.</div><div><br></div><div>The error I see is related to the use of Gtk3 bindings and gtk2 bindings in the same code.</div><div>For example</div><div>"from gi.repository import Gtk" is a Gtk3 binding</div>
<div>and</div><div>"import gtk" is th eGtk2 version.</div><div><br></div><div>As a secondary note (but not related with the error)</div><div>is better put all the import at the beginning of the code and not </div>
<div>mixed with the code.</div><div><br></div><div>Gonzalo<br><div><div><div><div class="h5"><br><div class="gmail_quote">On Sun, Jan 13, 2013 at 2:32 AM, Kartik Kumar Perisetla <span dir="ltr"><<a href="mailto:kartik.peri@gmail.com" target="_blank">kartik.peri@gmail.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hi Gonzalo,<br><br>How are you? <br><br>I was working on a activity where I need a Vte.Terminal instance .<br>I wrote this class-<br>
<br><b>class VteHandler:<br> def __init__(self):<br>
print "IN _VTE"<br><br> def getVteTerminal(self):<br> from gi.repository import Vte<br> from gtk import HBox<br> self.termObj=Vte.Terminal()<br> self.hb=HBox()<br> self.hb.add(self.termObj)<br>
<br> return self.hb</b><br><br>When I invoke getVteTerminal method of this class in main activity, I get this error:<br><img alt="Inline image 1" src="cid:ii_13c3261b9b84d5e7"><br><br>I also looked at other alternative like <b>import vte</b>. but it supports fork_command() which does not support SPAWN flags and thus it is not possible to hide propmt in VTE.<br>
I am grappling with this issue since few days. It would be great if you could help or give some pointers on how to solve it.<br><br>Cheers!<div><div><img src="https://mail.google.com/mail/u/0/images/cleardot.gif"></div>
</div>
</blockquote></div><br><br clear="all"><div><br></div></div></div><span class="HOEnZb"><font color="#888888">-- <br>Gonzalo Odiard<br><br>
</font></span></div></div></div>
</blockquote></div><br>