[prev in list] [next in list] [prev in thread] [next in thread] 

List:       pykde
Subject:    Re: [PyQt] Problems with QX11EmebedContainer since Qt4.4/PyQt latest
From:       "=?ISO-8859-1?Q?Gustavo_A._D=EDaz?=" <gustavo.diaz () gmail ! com>
Date:       2008-06-21 13:55:15
Message-ID: 64c123920806210655v6c0da796mbf0563a30058ae88 () mail ! gmail ! com
[Download RAW message or body]

[Attachment #2 (multipart/alternative)]


Mmm ok... i will try... but i must compile Qt4.3 for that, since I use
Kubuntu i all my desktops... :S
Anyway, thanks!! Phil.
I will ask in Qt forum as well, just in case.

Cheers.

2008/6/21 Phil Thompson <phil@riverbankcomputing.com>:

> On Sat, 21 Jun 2008 10:42:20 -0300, "Gustavo A. Díaz"
> <gustavo.diaz@gmail.com> wrote:
> > Hi guys.
> >
> > Since Qt4.4 (i dont know if is cause of Qt or PyQt latest version) i have
> > proeblems with this.
> > I have a code in my app that embeds a xterm console inside a frame, that
> > was
> > working perfect always... but since Qt4.4 doesn't anymore.
> >
> > My code:
> >
> > class toolsConsole(QtCore.QObject):
> >     def __init__(self, gui):
> >         QtCore.QObject.__init__(self)
> >
> >         self.gui = gui
> >
> >         # Creamos un contenedor para poder embeber la consola dentro de
> un
> > frame
> >         self.container = QX11EmbedContainer(self.gui.consoleFrame)
> >         self.container.setGeometry(4, 4, 600, 425)
> >
> >         # Comenzamos a definir la ventana para poder obtener el wid
> > (window
> > ID) y colocarlo en el "container"
> >         wid = self.container.winId()
> >
> >         # Asigamos los parámetros de la aplicación y a su vez,
> obtenemos
> > el
> > número de WID.
> >         self.parametersList = ["-into", repr(wid), "-bg", "black", "-fg",
> > "white"]
> >
> >         # Definimos la clase para ejecutar el proceso, o sea, la
> > aplicación
> > de la consola xterm
> >         self.process = QtCore.QProcess()
> >
> >         # Especificamos que el path por defecto, sea el HOME de cada
> > usuario.
> >         self.initDirectory = QString(QDir.homePath())
> >         self.process.setWorkingDirectory(self.initDirectory)
> >
> >         # Ejecutamos el proceso de xterm
> >         self.process.start("xterm", self.parametersList)
> >
> >
> > Indeed the process executes, the xterm is executing and with the winId
> > number and the parameters i've passed.
> >
> > Any tip?
>
> Try it with the version of Qt that worked before but with the current PyQt
> snapshot. If it works then it's a Qt problem. If it doesn't then it's
> probably a PyQt problem.
>
> Phil
>
>


-- 
Gustavo A. Díaz
GDNet Projects
www.gdnet.com.ar

[Attachment #5 (text/html)]

Mmm ok... i will try... but i must compile Qt4.3 for that, since I use Kubuntu i all \
my desktops... :S<br>Anyway, thanks!! Phil.<br>I will ask in Qt forum as well, just \
in case.<br><br>Cheers.<br><br><div class="gmail_quote"> 2008/6/21 Phil Thompson \
&lt;<a href="mailto:phil@riverbankcomputing.com">phil@riverbankcomputing.com</a>&gt;:<br><blockquote \
class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt \
0pt 0.8ex; padding-left: 1ex;"> <div><div></div><div class="Wj3C7c">On Sat, 21 Jun \
2008 10:42:20 -0300, &quot;Gustavo A. Díaz&quot;<br> &lt;<a \
href="mailto:gustavo.diaz@gmail.com">gustavo.diaz@gmail.com</a>&gt; wrote:<br> &gt; \
Hi guys.<br> &gt;<br>
&gt; Since Qt4.4 (i dont know if is cause of Qt or PyQt latest version) i have<br>
&gt; proeblems with this.<br>
&gt; I have a code in my app that embeds a xterm console inside a frame, that<br>
&gt; was<br>
&gt; working perfect always... but since Qt4.4 doesn&#39;t anymore.<br>
&gt;<br>
&gt; My code:<br>
&gt;<br>
&gt; class toolsConsole(QtCore.QObject):<br>
&gt; &nbsp; &nbsp; def __init__(self, gui):<br>
&gt; &nbsp; &nbsp; &nbsp; &nbsp; QtCore.QObject.__init__(self)<br>
&gt;<br>
&gt; &nbsp; &nbsp; &nbsp; &nbsp; self.gui = gui<br>
&gt;<br>
&gt; &nbsp; &nbsp; &nbsp; &nbsp; # Creamos un contenedor para poder embeber la \
consola dentro de<br> un<br>
&gt; frame<br>
&gt; &nbsp; &nbsp; &nbsp; &nbsp; self.container = \
QX11EmbedContainer(self.gui.consoleFrame)<br> &gt; &nbsp; &nbsp; &nbsp; &nbsp; \
self.container.setGeometry(4, 4, 600, 425)<br> &gt;<br>
&gt; &nbsp; &nbsp; &nbsp; &nbsp; # Comenzamos a definir la ventana para poder obtener \
el wid<br> &gt; (window<br>
&gt; ID) y colocarlo en el &quot;container&quot;<br>
&gt; &nbsp; &nbsp; &nbsp; &nbsp; wid = self.container.winId()<br>
&gt;<br>
&gt; &nbsp; &nbsp; &nbsp; &nbsp; # Asigamos los parámetros de la aplicación y a su \
vez,<br> obtenemos<br>
&gt; el<br>
&gt; número de WID.<br>
&gt; &nbsp; &nbsp; &nbsp; &nbsp; self.parametersList = [&quot;-into&quot;, repr(wid), \
&quot;-bg&quot;, &quot;black&quot;, &quot;-fg&quot;,<br> &gt; &quot;white&quot;]<br>
&gt;<br>
&gt; &nbsp; &nbsp; &nbsp; &nbsp; # Definimos la clase para ejecutar el proceso, o \
sea, la<br> &gt; aplicación<br>
&gt; de la consola xterm<br>
&gt; &nbsp; &nbsp; &nbsp; &nbsp; self.process = QtCore.QProcess()<br>
&gt;<br>
&gt; &nbsp; &nbsp; &nbsp; &nbsp; # Especificamos que el path por defecto, sea el HOME \
de cada<br> &gt; usuario.<br>
&gt; &nbsp; &nbsp; &nbsp; &nbsp; self.initDirectory = QString(QDir.homePath())<br>
&gt; &nbsp; &nbsp; &nbsp; &nbsp; \
self.process.setWorkingDirectory(self.initDirectory)<br> &gt;<br>
&gt; &nbsp; &nbsp; &nbsp; &nbsp; # Ejecutamos el proceso de xterm<br>
&gt; &nbsp; &nbsp; &nbsp; &nbsp; self.process.start(&quot;xterm&quot;, \
self.parametersList)<br> &gt;<br>
&gt;<br>
&gt; Indeed the process executes, the xterm is executing and with the winId<br>
&gt; number and the parameters i&#39;ve passed.<br>
&gt;<br>
&gt; Any tip?<br>
<br>
</div></div>Try it with the version of Qt that worked before but with the current \
PyQt<br> snapshot. If it works then it&#39;s a Qt problem. If it doesn&#39;t then \
it&#39;s<br> probably a PyQt problem.<br>
<font color="#888888"><br>
Phil<br>
<br>
</font></blockquote></div><br><br clear="all"><br>-- <br>Gustavo A. Díaz<br>GDNet \
Projects<br><a href="http://www.gdnet.com.ar">www.gdnet.com.ar</a>



_______________________________________________
PyQt mailing list    PyQt@riverbankcomputing.com
http://www.riverbankcomputing.com/mailman/listinfo/pyqt

[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic